Skip to content

Commit 28f0903

Browse files
committed
PlayerControllerHuman: fix CardFaceView 'name the card'
1 parent 41d990b commit 28f0903

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

forge-gui/src/main/java/forge/player/PlayerControllerHuman.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,12 +2924,7 @@ private void addCardToZone(ZoneType zone, final boolean repeatLast, final boolea
29242924
if (repeatLast) {
29252925
f = lastAdded;
29262926
} else {
2927-
List<CardFaceView> choices = new ArrayList<>();
2928-
for (ICardFace cardFace : carddb.getAllFaces()) {
2929-
choices.add(
2930-
new CardFaceView(CardTranslation.getTranslatedName(cardFace.getDisplayName()), cardFace.getName())
2931-
);
2932-
}
2927+
List<CardFaceView> choices = carddb.getAllFaces().stream().map(CardFaceView::new).collect(Collectors.toList());
29332928
Collections.sort(choices);
29342929
f = getGui().oneOrNone(localizer.getMessage("lblNameTheCard"), choices);
29352930
}

0 commit comments

Comments
 (0)