mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Remove some memory allocations if we don't need it anymore
This commit is contained in:
@@ -1358,6 +1358,9 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
|
|
||||||
public void resetExtraZones(ZoneType type) {
|
public void resetExtraZones(ZoneType type) {
|
||||||
extraZones.removeIf(z -> z.getZoneType().equals(type));
|
extraZones.removeIf(z -> z.getZoneType().equals(type));
|
||||||
|
if (extraZones.isEmpty()) {
|
||||||
|
extraZones = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user