1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 03:24:31 +02:00

Fix for the fix

This commit is contained in:
snowleo
2012-03-28 11:21:31 +02:00
parent 56dbc52088
commit 10acb7247b

View File

@@ -58,7 +58,7 @@ public class Trade
{ {
if (getMoney() != null if (getMoney() != null
&& getMoney() > 0 && getMoney() > 0
&& user.canAfford(getMoney())) && !user.canAfford(getMoney()))
{ {
throw new ChargeException(_("notEnoughMoney")); throw new ChargeException(_("notEnoughMoney"));
} }
@@ -72,7 +72,7 @@ public class Trade
double money; double money;
if (command != null && !command.isEmpty() if (command != null && !command.isEmpty()
&& 0 < (money = getCommandCost(user)) && 0 < (money = getCommandCost(user))
&& user.canAfford(money)) && !user.canAfford(money))
{ {
throw new ChargeException(_("notEnoughMoney")); throw new ChargeException(_("notEnoughMoney"));
} }