diff --git a/Mage.Client/src/main/java/mage/client/cards/CardGrid.java b/Mage.Client/src/main/java/mage/client/cards/CardGrid.java index 621ef06dbf7..2634ebcbd71 100644 --- a/Mage.Client/src/main/java/mage/client/cards/CardGrid.java +++ b/Mage.Client/src/main/java/mage/client/cards/CardGrid.java @@ -67,14 +67,14 @@ public class CardGrid extends javax.swing.JLayeredPane implements MouseListener, protected CardEventSource cardEventSource = new CardEventSource(); protected BigCard bigCard; protected UUID gameId; - private Map cards = new HashMap(); + private final Map cards = new HashMap<>(); private Dimension cardDimension; /** * Max amount of cards in card grid for which card images will be drawn. * Done so to solve issue with memory for big piles of cards. */ - public static final int MAX_IMAGES = 300; + public static final int MAX_IMAGES = 350; public CardGrid() { initComponents(); @@ -97,7 +97,7 @@ public class CardGrid extends javax.swing.JLayeredPane implements MouseListener, @Override public void loadCards(CardsView showCards, SortSetting sortSetting, BigCard bigCard, UUID gameId, boolean merge) { - boolean drawImage = showCards.size() < MAX_IMAGES; + boolean drawImage = showCards.size() <= MAX_IMAGES; this.bigCard = bigCard; this.gameId = gameId; if (merge) {