mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-06 10:26:22 +00:00
Write to user files less, on money update.
This commit is contained in:
parent
6fb8dad0ec
commit
28f478dd04
|
@ -383,7 +383,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||
|
||||
public void updateMoneyCache(final double value)
|
||||
{
|
||||
if (ess.getPaymentMethod().hasMethod())
|
||||
if (ess.getPaymentMethod().hasMethod() && super.getMoney() != value)
|
||||
{
|
||||
super.setMoney(value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue