mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
fix disable card images
This commit is contained in:
@@ -194,6 +194,9 @@ public class ImageCache {
|
|||||||
return getImage(imageKey, useDefaultIfNotFound, false);
|
return getImage(imageKey, useDefaultIfNotFound, false);
|
||||||
}
|
}
|
||||||
public static Texture getImage(String imageKey, boolean useDefaultIfNotFound, boolean useOtherCache) {
|
public static Texture getImage(String imageKey, boolean useDefaultIfNotFound, boolean useOtherCache) {
|
||||||
|
if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_DISABLE_CARD_IMAGES))
|
||||||
|
return null;
|
||||||
|
|
||||||
if (StringUtils.isEmpty(imageKey)) {
|
if (StringUtils.isEmpty(imageKey)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user