Fix crash in GuiModList for mod logo files, logo is not rendering for unknow reason.
This commit is contained in:
parent
d8e82d4c35
commit
4272159492
|
@ -122,6 +122,8 @@ public class GuiModList extends GuiScreen
|
||||||
if (!selectedMod.getMetadata().logoFile.isEmpty())
|
if (!selectedMod.getMetadata().logoFile.isEmpty())
|
||||||
{
|
{
|
||||||
List<Texture> texList = TextureManager.func_94267_b().func_94266_e(selectedMod.getMetadata().logoFile);
|
List<Texture> texList = TextureManager.func_94267_b().func_94266_e(selectedMod.getMetadata().logoFile);
|
||||||
|
if (texList != null)// Potentially could not find the texture
|
||||||
|
{
|
||||||
Texture texture = texList.get(0);
|
Texture texture = texList.get(0);
|
||||||
texture.func_94277_a(0);
|
texture.func_94277_a(0);
|
||||||
int top = 32;
|
int top = 32;
|
||||||
|
@ -135,6 +137,7 @@ public class GuiModList extends GuiScreen
|
||||||
|
|
||||||
shifty += 65;
|
shifty += 65;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.field_73886_k.func_78261_a(selectedMod.getMetadata().name, offset, shifty, 0xFFFFFF);
|
this.field_73886_k.func_78261_a(selectedMod.getMetadata().name, offset, shifty, 0xFFFFFF);
|
||||||
shifty += 12;
|
shifty += 12;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "Modding toolkit to decompile and deobfuscate the Minecraft client and server files.",
|
"description": "Modding toolkit to decompile and deobfuscate the Minecraft client and server files.",
|
||||||
"version": "7.30c",
|
"version": "7.30c",
|
||||||
"mcversion": "13w02b",
|
"mcversion": "13w02b",
|
||||||
"logoFile": "/mcp.png",
|
"logoFile": "mcp.png",
|
||||||
"url": "http://mcp.ocean-labs.de/",
|
"url": "http://mcp.ocean-labs.de/",
|
||||||
"updateUrl": "",
|
"updateUrl": "",
|
||||||
"authors": ["Searge", "ProfMobius", "IngisKahn", "Fesh0r", "ZeuX", "R4wk", "Others"],
|
"authors": ["Searge", "ProfMobius", "IngisKahn", "Fesh0r", "ZeuX", "R4wk", "Others"],
|
||||||
|
|
Loading…
Reference in New Issue