[Mobile] fix preferred icons

This commit is contained in:
Anthony Calosa
2021-02-18 06:42:12 +08:00
parent c17c467a8e
commit ffb6fc4b97
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ public class FSkin {
public void run() { public void run() {
FSkinFont.deleteCachedFiles(); //delete cached font files so font can be update for new skin FSkinFont.deleteCachedFiles(); //delete cached font files so font can be update for new skin
FSkinFont.updateAll(); FSkinFont.updateAll();
CardImageRenderer.forceStaticFieldUpdate(); //CardImageRenderer.forceStaticFieldUpdate();
FThreads.invokeInEdtLater(new Runnable() { FThreads.invokeInEdtLater(new Runnable() {
@Override @Override
public void run() { public void run() {

View File

@@ -465,7 +465,7 @@ public enum FSkinImage implements FImage {
} }
} }
if (texture != null) { if (texture != null) {
if (sourceFile != SourceFile.ICONS && sourceFile != SourceFile.MANAICONS) { //just return region for preferred file if not icons file if (!(sourceFile == SourceFile.ICONS || sourceFile == SourceFile.MANAICONS)) { //just return region for preferred file if not icons file
textureRegion = new TextureRegion(texture, x, y, w, h); textureRegion = new TextureRegion(texture, x, y, w, h);
return; return;
} }