diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-02-23 17:25:00 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-02-23 17:25:00 +0000 |
commit | 28f478dd04c16d3deb21625aebf74a25b57665b2 (patch) | |
tree | 3dd9a4f4e0844db3481f84e7204757b41ae22af2 | |
parent | 6fb8dad0eca654c0a4a07ae8337419562088b914 (diff) | |
download | Essentials-28f478dd04c16d3deb21625aebf74a25b57665b2.tar Essentials-28f478dd04c16d3deb21625aebf74a25b57665b2.tar.gz Essentials-28f478dd04c16d3deb21625aebf74a25b57665b2.tar.lz Essentials-28f478dd04c16d3deb21625aebf74a25b57665b2.tar.xz Essentials-28f478dd04c16d3deb21625aebf74a25b57665b2.zip |
Write to user files less, on money update.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/User.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index ce4d1ce27..7225e1dba 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -383,8 +383,8 @@ 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); } } |