diff options
author | snowleo <schneeleo@gmail.com> | 2012-03-28 11:21:31 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-03-28 11:21:31 +0200 |
commit | 71d874484037b73e8eed93194d1f0a966bb389e1 (patch) | |
tree | ca149a90c0abcaaa119ca846132cae45af329fc9 | |
parent | 32c689e0f5a275d37df941d8e9e24caa62ef5890 (diff) | |
download | Essentials-71d874484037b73e8eed93194d1f0a966bb389e1.tar Essentials-71d874484037b73e8eed93194d1f0a966bb389e1.tar.gz Essentials-71d874484037b73e8eed93194d1f0a966bb389e1.tar.lz Essentials-71d874484037b73e8eed93194d1f0a966bb389e1.tar.xz Essentials-71d874484037b73e8eed93194d1f0a966bb389e1.zip |
Fix for the fix
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Trade.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Trade.java b/Essentials/src/com/earth2me/essentials/Trade.java index 502d3e34d..730037d9a 100644 --- a/Essentials/src/com/earth2me/essentials/Trade.java +++ b/Essentials/src/com/earth2me/essentials/Trade.java @@ -58,7 +58,7 @@ public class Trade { if (getMoney() != null && getMoney() > 0 - && user.canAfford(getMoney())) + && !user.canAfford(getMoney())) { throw new ChargeException(_("notEnoughMoney")); } @@ -72,7 +72,7 @@ public class Trade double money; if (command != null && !command.isEmpty() && 0 < (money = getCommandCost(user)) - && user.canAfford(money)) + && !user.canAfford(money)) { throw new ChargeException(_("notEnoughMoney")); } |