mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
Fix for the fix
This commit is contained in:
parent
32c689e0f5
commit
71d8744840
1 changed files with 2 additions and 2 deletions
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue