mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
isBlank() is from Java 11
This commit is contained in:
@@ -141,7 +141,7 @@ public class PlayEffect extends SpellAbilityEffect {
|
||||
}
|
||||
} else if (sa.hasParam("CopyFromChosenName")) {
|
||||
String name = source.getChosenName();
|
||||
if (name.isBlank()) return;
|
||||
if (name.trim().isEmpty()) return;
|
||||
Card card = Card.fromPaperCard(StaticData.instance().getCommonCards().getUniqueByName(name), controller);
|
||||
card.setToken(true);
|
||||
tgtCards = new CardCollection();
|
||||
|
||||
Reference in New Issue
Block a user