Fixed removing counters

This commit is contained in:
magenoxx 2014-08-29 13:18:10 +04:00
parent 4f18e1ad71
commit 50fa28e81d

View file

@ -89,6 +89,9 @@ public class Counters extends HashMap<String, Counter> implements Serializable {
public void removeCounter(String name, int amount) {
if (this.containsKey(name)) {
this.get(name).remove(amount);
if (this.get(name).getCount() == 0) {
this.remove(name);
}
}
}