fix disable card images

This commit is contained in:
Anthony Calosa
2021-10-06 17:33:02 +08:00
parent a8115d8a44
commit 0c2b0b3d9a

View File

@@ -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;
} }