Skip to content

Commit

Permalink
Fix incorrect saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jun 24, 2023
1 parent 1b2d6e5 commit 7373e32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation include('fr.catcore:server-translations-api:1.4.18+1.19.2')
modImplementation include('eu.pb4:polymer:0.2.25+1.19.2')
modImplementation include('eu.pb4:polymer:0.2.28+1.19.2')
modImplementation include("eu.pb4:hologram-api:0.2.2+1.19")
modImplementation include("eu.pb4:sgui:1.1.5+1.19.1")
modImplementation include("eu.pb4:placeholder-api:2.0.0-pre.1+1.19.2")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.10

# Mod Properties
mod_version = 1.0.2+1.19.2
mod_version = 1.0.3+1.19.2
maven_group = eu.pb4
archives_base_name = universal_shops

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/eu/pb4/universalshops/trade/PriceHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public PriceHandler createInitial(TradeShopBlockEntity blockEntity) {
protected SingleItem(PriceHandler.Definition creator, ItemStack initialValue, TradeShopBlockEntity blockEntity) {
super(creator, blockEntity);
this.value = initialValue;
this.currencyInventory.addListener((inv) -> {
blockEntity.markDirty();
});
}

@Override
Expand Down

0 comments on commit 7373e32

Please sign in to comment.