Don't update image cache if automatically download missing card images is enabled

This commit is contained in:
Lyu Zong-Hong
2021-07-26 22:46:44 +09:00
parent e6c5c8989c
commit 6e831a262d

View File

@@ -205,7 +205,8 @@ public class ImageCache {
if (pc != null) {
original = new BufferedImage(480, 680, BufferedImage.TYPE_INT_ARGB);
FCardImageRenderer.drawCardImage(original.createGraphics(), pc, altState, 480, 680);
_CACHE.put(imageKey, original);
if (!isPreferenceEnabled(ForgePreferences.FPref.UI_ENABLE_ONLINE_IMAGE_FETCHER))
_CACHE.put(imageKey, original);
} else {
original = _defaultImage;
}