Allow people to hit exactly 'min money'.

This commit is contained in:
KHobbits 2012-02-26 05:10:04 +00:00
parent 6ab57b9abe
commit 332f19177e
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}