Enable custom gui rendering only as required

This commit is contained in:
Player committed 2014-04-03 17:58:53 +02:00
1 parent 407f6f79af
commit 37a81d04d9
1 file changed
+6 -6
@@ -441,7 +441,7 @@ public class FMLClientHandler implements IFMLSidedHandler
if (query.isSynchronous())
{
while (!(client.currentScreen instanceof GuiMainMenu))
while (client.currentScreen instanceof GuiNotification)
{
if (Thread.interrupted()) throw new InterruptedException();
@@ -454,11 +454,7 @@ public class FMLClientHandler implements IFMLSidedHandler
public boolean handleLoadingScreen(ScaledResolution scaledResolution)
{
if (client.currentScreen instanceof GuiMainMenu)
{
return false;
}
else
if (client.currentScreen instanceof GuiNotification)
{
int width = scaledResolution.getScaledWidth();
int height = scaledResolution.getScaledHeight();
@@ -470,6 +466,10 @@ public class FMLClientHandler implements IFMLSidedHandler
return true;
}
else
{
return false;
}
}
public WorldClient getWorldClient()