mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Make sure Image item is actually a PaperCard before checking it's Edition
This commit is contained in:
@@ -1103,8 +1103,9 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
||||
final int selBorderSize = 1;
|
||||
|
||||
// Determine whether to render border from properties
|
||||
boolean noBorder = !isPreferenceEnabled(ForgePreferences.FPref.UI_RENDER_BLACK_BORDERS)
|
||||
||CardView.getCardForUi((IPaperCard)itemInfo.item).getCurrentState().getSetCode().equalsIgnoreCase("MPS_AKH");
|
||||
boolean noBorder = !isPreferenceEnabled(ForgePreferences.FPref.UI_RENDER_BLACK_BORDERS) ||
|
||||
(itemInfo.item instanceof IPaperCard && CardView.getCardForUi((IPaperCard)itemInfo.item).
|
||||
getCurrentState().getSetCode().equalsIgnoreCase("MPS_AKH"));
|
||||
|
||||
final int borderSize = noBorder? 2 : Math.round(itemWidth * CardPanel.BLACK_BORDER_SIZE);
|
||||
final int cornerSize = Math.max(4, Math.round(itemWidth * CardPanel.ROUNDED_CORNER_SIZE));
|
||||
|
||||
Reference in New Issue
Block a user