if (this.textures.contains(textureName)) {
return textureName;
}
try {
ITexturePack texturePackBase = this.settings.minecraft.texturePackList.getSelectedTexturePack();
File newTextureFile = new File(Settings.textureDirectory, texturePackBase.getTexturePackFileName().replace(".zip", "") + textureName);
if (!newTextureFile.exists()) {
BufferedImage bufferedImage = readTextureImage(texturePackBase.getResourceAsStream(texture));
if (bufferedImage == null) {
return texture;
}
int x, y, color;