From 64a819b943f405e97801b198abd0ec5fc3c28dce Mon Sep 17 00:00:00 2001 From: Stijn Date: Mon, 19 Sep 2022 19:18:44 +0200 Subject: [PATCH] Fixed incorrect save order when adding balance to shop --- src/main/java/com/alttd/playershops/shop/PlayerShop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/alttd/playershops/shop/PlayerShop.java b/src/main/java/com/alttd/playershops/shop/PlayerShop.java index 06a4d82..8641b87 100644 --- a/src/main/java/com/alttd/playershops/shop/PlayerShop.java +++ b/src/main/java/com/alttd/playershops/shop/PlayerShop.java @@ -193,9 +193,9 @@ public class PlayerShop { return false; // cancelled by another plugin, does this need logging? setDirty(true); - update(); this.balance += amount; this.setLastTransaction(System.currentTimeMillis()); + update(); return true; }