mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Allow people to hit exactly 'min money'.
This commit is contained in:
parent
bcf903de92
commit
10ae9c3aa2
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue