diff --git a/forge-gui-mobile/src/forge/deck/FDeckViewer.java b/forge-gui-mobile/src/forge/deck/FDeckViewer.java index 3899055a4c2..6e4a18661b0 100644 --- a/forge-gui-mobile/src/forge/deck/FDeckViewer.java +++ b/forge-gui-mobile/src/forge/deck/FDeckViewer.java @@ -59,10 +59,10 @@ public class FDeckViewer extends FScreen { deckList.append(s.toString()).append(": "); deckList.append(nl); Set accounted = new HashSet<>(); - for (final Entry ev : cp) { - if (!accounted.contains(ev.getKey().getCardName())) { - deckList.append(cp.countByName(ev.getKey())).append(" ").append(ev.getKey().getCardName()).append(nl); - accounted.add(ev.getKey().getCardName()); + for (final PaperCard ev : cp.toFlatList()) { + if (!accounted.contains(ev.getCardName())) { + deckList.append(cp.countByName(ev.getCardName())).append(" ").append(ev.getCardName()).append(nl); //search for all instances of that name in the list. + accounted.add(ev.getCardName()); //add the name to the list so it ignores the next time it appears } } deckList.append(nl);