summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-02-23 17:25:00 +0000
committerKHobbits <rob@khobbits.co.uk>2012-02-23 17:25:00 +0000
commit28f478dd04c16d3deb21625aebf74a25b57665b2 (patch)
tree3dd9a4f4e0844db3481f84e7204757b41ae22af2
parent6fb8dad0eca654c0a4a07ae8337419562088b914 (diff)
downloadEssentials-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.java4
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);
}
}