startGame();
}
catch (Exception exception)
{
exception.printStackTrace();
onMinecraftCrash(new UnexpectedThrowable("Failed to start game", exception));
return;
}
try
{
while (running)
{
try
{
runGameLoop();
}
catch (MinecraftException minecraftexception)
{
theWorld = null;
changeWorld1(null);
displayGuiScreen(new GuiConflictWarning());
}
catch (OutOfMemoryError outofmemoryerror)
{
freeMemory();
displayGuiScreen(new GuiMemoryErrorScreen());
System.gc();
}
}
}
catch (MinecraftError minecrafterror) { }
catch (Throwable throwable)
{
freeMemory();
throwable.printStackTrace();
onMinecraftCrash(new UnexpectedThrowable("Unexpected error", throwable));
}
finally
{
shutdownMinecraftApplet();
}