Fixed incorrect save order when adding balance to shop

This commit is contained in:
Stijn 2022-09-19 19:18:44 +02:00
parent 0674c969db
commit 64a819b943

View File

@ -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;
}