Enable custom gui rendering only as required
This commit is contained in:
parent
407f6f79af
commit
37a81d04d9
1 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue