Merge branch 'newBranch' into 'master'

Fix CardArtCache,LoadingCache Dispose Textures

See merge request core-developers/forge!2805
This commit is contained in:
Sol
2020-05-11 15:23:08 +00:00
7 changed files with 40 additions and 6 deletions

View File

@@ -45,7 +45,12 @@ public class ConquestRegion {
return name;
}
public void clearArt() {
art = null;
}
public ISkinImage getArt() {
clearArt(); //force clear this so it will be redrawn since loadingcache invalidates the cache every screen change
if (art == null) {
PaperCard pc = cardPool.getCard(artCardName);