refactor: improve stone cooldown update method
This commit is contained in:
parent
191817100d
commit
a86e75014f
@ -41,7 +41,7 @@ public class StoneCooldownManager {
|
||||
* Decreases all cooldowns by one according to a round having passed.
|
||||
*/
|
||||
public void update() {
|
||||
cooldowns.replaceAll((s, v) -> Math.max(0, cooldowns.getOrDefault(s, 0) - 1));
|
||||
cooldowns.replaceAll((s, v) -> Math.max(0, v - 1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user