diff --git a/gradle.properties b/gradle.properties index 509d5f63..2b4ef1f3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.17 yarn_mappings=1.17+build.1 loader_version=0.11.3 # Mod Properties -mod_version=1.5.4 +mod_version=1.5.5 maven_group=io.github.flemmli97 archives_base_name=flan # Dependencies diff --git a/src/main/java/io/github/flemmli97/flan/integration/gunpowder/CommandCurrency.java b/src/main/java/io/github/flemmli97/flan/integration/gunpowder/CommandCurrency.java index 1bdf13b9..da3ec7ea 100644 --- a/src/main/java/io/github/flemmli97/flan/integration/gunpowder/CommandCurrency.java +++ b/src/main/java/io/github/flemmli97/flan/integration/gunpowder/CommandCurrency.java @@ -36,6 +36,7 @@ public static int sellClaimBlocks(CommandContext context) t BigDecimal price = BigDecimal.valueOf(amount * ConfigHandler.config.sellPrice); bal.setBalance(bal.getBalance().add(price)); data.setAdditionalClaims(data.getAdditionalClaims() - amount); + BalanceHandler.INSTANCE.updateUser(bal); context.getSource().sendFeedback(PermHelper.simpleColoredText(String.format(ConfigHandler.lang.sellSuccess, amount, price), Formatting.GOLD), false); return Command.SINGLE_SUCCESS; } @@ -56,6 +57,7 @@ public static int buyClaimBlocks(CommandContext context) th PlayerClaimData data = PlayerClaimData.get(context.getSource().getPlayer()); data.setAdditionalClaims(data.getAdditionalClaims() + amount); bal.setBalance(bal.getBalance().subtract(price)); + BalanceHandler.INSTANCE.updateUser(bal); context.getSource().sendFeedback(PermHelper.simpleColoredText(String.format(ConfigHandler.lang.buySuccess, amount, price), Formatting.GOLD), false); return Command.SINGLE_SUCCESS; }