mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Merge branch 'kevlahnota-master-patch-58460' into 'master'
Update ImageCache.java See merge request core-developers/forge!4399
This commit is contained in:
@@ -77,7 +77,9 @@ public class ImageCache {
|
|||||||
@Override
|
@Override
|
||||||
public void onRemoval(RemovalNotification<String, Texture> removalNotification) {
|
public void onRemoval(RemovalNotification<String, Texture> removalNotification) {
|
||||||
if (removalNotification.wasEvicted()) {
|
if (removalNotification.wasEvicted()) {
|
||||||
removalNotification.getValue().dispose();
|
if (removalNotification.getValue() != ImageCache.defaultImage)
|
||||||
|
removalNotification.getValue().dispose();
|
||||||
|
|
||||||
CardRenderer.clearcardArtCache();
|
CardRenderer.clearcardArtCache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user