Don't check for loan permission is there is no cost.

This commit is contained in:
KHobbits 2012-08-22 09:12:38 +01:00
parent d43cb95d72
commit 7c687831bc

View file

@ -176,6 +176,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
public boolean canAfford(final double cost, final boolean permcheck)
{
if (cost <= 0) { return true; }
final double mon = getMoney();
if (!permcheck || isAuthorized("essentials.eco.loan"))
{