fix: stone cooldown check needs to check for > 0
This commit is contained in:
parent
70529f04d8
commit
6885dcc13d
@ -50,7 +50,7 @@ public class StoneCooldownManager {
|
|||||||
* @return Whether or not the stone is on cooldown
|
* @return Whether or not the stone is on cooldown
|
||||||
*/
|
*/
|
||||||
public boolean onCooldown(StoneType stone) {
|
public boolean onCooldown(StoneType stone) {
|
||||||
return cooldowns.containsKey(stone);
|
return cooldowns.getOrDefault(stone, 0) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user