mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Reveal empty list won't crash the game
This commit is contained in:
@@ -464,7 +464,11 @@ public class PlayerControllerHuman extends PlayerController {
|
|||||||
if (StringUtils.isBlank(message)) {
|
if (StringUtils.isBlank(message)) {
|
||||||
message = "Looking at cards in {player's} " + zone.name();
|
message = "Looking at cards in {player's} " + zone.name();
|
||||||
}
|
}
|
||||||
GuiChoose.reveal(formatMessage(message, owner), cards);
|
String fm = formatMessage(message, owner);
|
||||||
|
if ( !cards.isEmpty() )
|
||||||
|
GuiChoose.reveal(fm, cards);
|
||||||
|
else
|
||||||
|
GuiDialog.message("There are no cards in the named location", fm);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user