mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Some fixes to the Monarch designation.
This commit is contained in:
parent
02b30a503a
commit
3d95849c10
15 changed files with 511 additions and 37 deletions
|
|
@ -63,6 +63,9 @@ public class CardPanelRenderImpl extends CardPanel {
|
|||
if (!a.getRules().equals(b.getRules())) {
|
||||
return false;
|
||||
}
|
||||
if (a.getRarity() == null || b.getRarity() == null) {
|
||||
return false;
|
||||
}
|
||||
if (!a.getRarity().equals(b.getRarity())) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class CardImageUtils {
|
|||
return filePath;
|
||||
}
|
||||
}
|
||||
log.warn("Token image file not found: " + card.getTokenSetCode() + " - " + card.getName());
|
||||
log.warn("Token image file not found: " + card.getSet() + " - " + card.getTokenSetCode() + " - " + card.getName());
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ public class CardImageUtils {
|
|||
return buildPath(imagesDir, set);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static String getImageBasePath() {
|
||||
String useDefault = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_USE_DEFAULT, "true");
|
||||
String imagesPath = useDefault.equals("true") ? Constants.IO.imageBaseDir : PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_PATH, null);
|
||||
|
|
@ -126,7 +126,7 @@ public class CardImageUtils {
|
|||
}
|
||||
return imagesPath;
|
||||
}
|
||||
|
||||
|
||||
public static String getTokenBasePath() {
|
||||
String imagesPath = getImageBasePath();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue