mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
fix crash when hiding temporarily shown zones
This commit is contained in:
@@ -457,6 +457,7 @@ public final class CMatchUI
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hideZones(final PlayerView controller, final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
public void hideZones(final PlayerView controller, final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
||||||
|
if ( zonesToUpdate != null ) {
|
||||||
for (final PlayerZoneUpdate update : zonesToUpdate) {
|
for (final PlayerZoneUpdate update : zonesToUpdate) {
|
||||||
final PlayerView player = update.getPlayer();
|
final PlayerView player = update.getPlayer();
|
||||||
for (final ZoneType zone : update.getZones()) {
|
for (final ZoneType zone : update.getZones()) {
|
||||||
@@ -477,6 +478,7 @@ public final class CMatchUI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Player's mana pool changes
|
// Player's mana pool changes
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user