diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-02-26 05:10:04 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-02-28 02:45:03 +0000 |
commit | 332f19177e961a60c984e674e499c78a87f4fb49 (patch) | |
tree | dae5e267b5745d81fe5f884b4f9446079bde68d9 | |
parent | 6ab57b9abefd0e0f9676127fda741da1507b2629 (diff) | |
download | Essentials-332f19177e961a60c984e674e499c78a87f4fb49.tar Essentials-332f19177e961a60c984e674e499c78a87f4fb49.tar.gz Essentials-332f19177e961a60c984e674e499c78a87f4fb49.tar.lz Essentials-332f19177e961a60c984e674e499c78a87f4fb49.tar.xz Essentials-332f19177e961a60c984e674e499c78a87f4fb49.zip |
Allow people to hit exactly 'min money'.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/User.java | 2 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/user/User.java | 2 |
2 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 86a3bcbfe..0be375c88 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -161,7 +161,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser final double mon = getMoney(); if (!permcheck || isAuthorized("essentials.eco.loan")) { - return (mon - cost) > ess.getSettings().getMinMoney(); + return (mon - cost) >= ess.getSettings().getMinMoney(); } return cost <= mon; } diff --git a/Essentials/src/com/earth2me/essentials/user/User.java b/Essentials/src/com/earth2me/essentials/user/User.java index d77790938..0e77dd6a9 100644 --- a/Essentials/src/com/earth2me/essentials/user/User.java +++ b/Essentials/src/com/earth2me/essentials/user/User.java @@ -203,7 +203,7 @@ public class User extends UserBase implements IUser final double mon = getMoney(); if (isAuthorized("essentials.eco.loan")) { - return (mon - cost) > ess.getSettings().getMinMoney(); + return (mon - cost) >= ess.getSettings().getMinMoney(); } return cost <= mon; } |