mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-13 05:38:59 +00:00
Don't check for loan permission is there is no cost.
This commit is contained in:
parent
d43cb95d72
commit
7c687831bc
|
@ -176,6 +176,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||||
|
|
||||||
public boolean canAfford(final double cost, final boolean permcheck)
|
public boolean canAfford(final double cost, final boolean permcheck)
|
||||||
{
|
{
|
||||||
|
if (cost <= 0) { return true; }
|
||||||
final double mon = getMoney();
|
final double mon = getMoney();
|
||||||
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
if (!permcheck || isAuthorized("essentials.eco.loan"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue