Merge branch 'kevlahnota-master-patch-58460' into 'master'

Update ImageCache.java

See merge request core-developers/forge!4399
This commit is contained in:
Anthony Calosa
2021-04-06 03:59:42 +00:00

View File

@@ -77,7 +77,9 @@ public class ImageCache {
@Override
public void onRemoval(RemovalNotification<String, Texture> removalNotification) {
if (removalNotification.wasEvicted()) {
removalNotification.getValue().dispose();
if (removalNotification.getValue() != ImageCache.defaultImage)
removalNotification.getValue().dispose();
CardRenderer.clearcardArtCache();
}
}