mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Enable custom gui rendering only as required
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user