mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fix crash when hiding temporarily shown zones
This commit is contained in:
@@ -457,22 +457,24 @@ 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) {
|
||||||
for (final PlayerZoneUpdate update : zonesToUpdate) {
|
if ( zonesToUpdate != null ) {
|
||||||
final PlayerView player = update.getPlayer();
|
for (final PlayerZoneUpdate update : zonesToUpdate) {
|
||||||
for (final ZoneType zone : update.getZones()) {
|
final PlayerView player = update.getPlayer();
|
||||||
switch (zone) {
|
for (final ZoneType zone : update.getZones()) {
|
||||||
case Battlefield: // always shown
|
switch (zone) {
|
||||||
break;
|
case Battlefield: // always shown
|
||||||
case Hand: // the controller's hand should never be temporarily shown, but ...
|
break;
|
||||||
case Library:
|
case Hand: // the controller's hand should never be temporarily shown, but ...
|
||||||
case Graveyard:
|
case Library:
|
||||||
case Exile:
|
case Graveyard:
|
||||||
case Flashback:
|
case Exile:
|
||||||
case Command:
|
case Flashback:
|
||||||
FloatingZone.hide(this,player,zone);
|
case Command:
|
||||||
break;
|
FloatingZone.hide(this,player,zone);
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user