Fix trying to close the screen during error.

This commit is contained in:
cpw 2015-04-25 00:41:50 -04:00
parent 794ff1d1b4
commit 4e6aa905f0
2 changed files with 7 additions and 3 deletions

View file

@ -394,10 +394,10 @@ public class FMLClientHandler implements IFMLSidedHandler
}
else
{
Loader.instance().loadingComplete();
SplashProgress.finish();
}
logMissingTextureErrors();
Loader.instance().loadingComplete();
SplashProgress.finish();
}
/**
* Get the server instance
@ -921,6 +921,10 @@ public class FMLClientHandler implements IFMLSidedHandler
public void logMissingTextureErrors()
{
if (missingTextures.isEmpty() && brokenTextures.isEmpty())
{
return;
}
Logger logger = LogManager.getLogger("TEXTURE ERRORS");
logger.error(Strings.repeat("+=", 25));
logger.error("The following texture errors were found.");

View file

@ -58,6 +58,6 @@ public class GuiModsMissing extends GuiErrorScreen
this.drawCenteredString(this.fontRendererObj, String.format("%s : %s", v.getLabel(), v.getRangeString()), this.width / 2, offset, 0xEEEEEE);
}
offset+=20;
this.drawCenteredString(this.fontRendererObj, "The file 'ForgeModLoader-client-0.log' contains more information", this.width / 2, offset, 0xFFFFFF);
this.drawCenteredString(this.fontRendererObj, "The file 'logs/fml-client-latest.log' contains more information", this.width / 2, offset, 0xFFFFFF);
}
}