summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-03-28 11:21:31 +0200
committersnowleo <schneeleo@gmail.com>2012-03-28 11:21:31 +0200
commit71d874484037b73e8eed93194d1f0a966bb389e1 (patch)
treeca149a90c0abcaaa119ca846132cae45af329fc9
parent32c689e0f5a275d37df941d8e9e24caa62ef5890 (diff)
downloadEssentials-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.java4
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"));
}