Allow people to hit exactly 'min money'.

This commit is contained in:
KHobbits 2012-02-26 05:10:04 +00:00
parent bcf903de92
commit 10ae9c3aa2
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;
}