mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18: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)) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user