Update AdventureDeckEditor.java

fix bulk sell menu appearing on other catalogpages
This commit is contained in:
kevlahnota
2024-12-05 11:32:45 +08:00
committed by GitHub
parent 6867a0eaba
commit 32ba304d11

View File

@@ -581,7 +581,7 @@ public class AdventureDeckEditor extends TabPageScreen<AdventureDeckEditor> {
FMenuItem addBasic = new FMenuItem(Forge.getLocalizer().getMessage("lblAddBasicLands"), FSkinImage.LANDLOGO, e1 -> launchBasicLandDialog()); FMenuItem addBasic = new FMenuItem(Forge.getLocalizer().getMessage("lblAddBasicLands"), FSkinImage.LANDLOGO, e1 -> launchBasicLandDialog());
addItem(addBasic); addItem(addBasic);
} }
if (!isShop && catalogPage != null && !(catalogPage instanceof ContentPreviewPage)) { if (!isShop && catalogPage != null && catalogPage instanceof CollectionCatalogPage) {
// Add bulk sell menu option. This will sell all cards in the current filter. // Add bulk sell menu option. This will sell all cards in the current filter.
int count = 0; int count = 0;
int value = 0; int value = 0;