Minimum money is 0

This commit is contained in:
kaenganxt
2014-12-01 17:54:14 +01:00
parent 5783ccebc7
commit 577c1c107a

View File

@@ -14,7 +14,9 @@ public class Money {
return;
}
}
playerMoney.put(P, playerMoney.get(P) + count);
int money = playerMoney.get(P) + count;
if (money < 0) money = 0;
playerMoney.put(P, money);
}
public static void saveMoney(OfflinePlayer P) {