mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Fix a bogus warning when removing all counters of one type from a permanent
This commit is contained in:
parent
092951a24a
commit
07f7f38843
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ public class Counter implements Serializable {
|
|||
* to be less than 0. If an attempt is made to make the count be less than zero, the call will be logged.
|
||||
*/
|
||||
public void remove(int amount) {
|
||||
if (count > amount) {
|
||||
if (count >= amount) {
|
||||
count -= amount;
|
||||
} else {
|
||||
logger.warn("An attempt was made to set the counter '" + name +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue