General warning cleanup

This commit is contained in:
johni0702
2015-07-19 16:18:34 +02:00
parent 4f718ab302
commit 6422558028
31 changed files with 88 additions and 281 deletions

View File

@@ -14,7 +14,7 @@ public class AssetFileUtils {
return ImageIO.getReaderFileSuffixes();
}
return null;
throw new UnsupportedOperationException("Unknown replay asset type: " + clazz);
}
public static String[] getAllAvailableExtensions() {

View File

@@ -91,7 +91,7 @@ public class CustomImageObject implements GuiEntryListEntry {
return null;
}
if(resourceLocation != null && !ResourceHelper.isRegistered(resourceLocation)) {
if(!ResourceHelper.isRegistered(resourceLocation)) {
ResourceHelper.registerResource(resourceLocation);
Minecraft.getMinecraft().getTextureManager().loadTexture(resourceLocation, dynamicTexture);
dynamicTexture.updateDynamicTexture();