fix: stone cooldown check needs to check for > 0

This commit is contained in:
punchready 2021-07-07 14:58:24 +02:00
parent 70529f04d8
commit 6885dcc13d

View File

@ -50,7 +50,7 @@ public class StoneCooldownManager {
* @return Whether or not the stone is on cooldown
*/
public boolean onCooldown(StoneType stone) {
return cooldowns.containsKey(stone);
return cooldowns.getOrDefault(stone, 0) > 0;
}
/**