support UST extended art

This commit is contained in:
Anthony Calosa
2019-11-01 12:39:57 +08:00
parent 4ca7352d5c
commit 4318e23a40

View File

@@ -21,9 +21,10 @@ final class ImageLoader extends CacheLoader<String, Texture> {
boolean extendedArt = false;
boolean textureFilter = Forge.isTextureFilteringEnabled();
if (key.length() > 4){
if ((key.substring(0,4).contains("MPS_"))) //TODO add sets to get all extended art???
if ((key.substring(0,4).contains("MPS_"))) //MPS_ sets
extendedArt = true;
else if ((key.substring(0,3).contains("UST"))) //Unstable Set
extendedArt = true;
//use generated extended art... it will preload the cache at startup so... yeah! :)
}
File file = ImageKeys.getImageFile(key);
if (file != null) {