mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fixed loading error/warning screen not showing (#6218)
This commit is contained in:
1 parent
c345dfb0c6
commit
6c8342b74e
2 files changed
+14
-6
No files matched your search
@@ -142,7 +142,13 @@ public class ClientModLoader
|
||||
return VersionChecker.Status.UP_TO_DATE;
|
||||
}
|
||||
|
||||
@Deprecated // TODO: remove in 1.15
|
||||
public static void complete()
|
||||
{
|
||||
completeModLoading();
|
||||
}
|
||||
|
||||
public static boolean completeModLoading()
|
||||
{
|
||||
GlStateManager.disableTexture();
|
||||
GlStateManager.enableTexture();
|
||||
@@ -161,15 +167,17 @@ public class ClientModLoader
|
||||
}
|
||||
warnings = Collections.emptyList(); //Clear warnings, as the user does not want to see them
|
||||
}
|
||||
if (error != null || !warnings.isEmpty()) {
|
||||
mc.displayGuiScreen(new LoadingErrorScreen(error, warnings));
|
||||
} else {
|
||||
ClientHooks.logMissingTextureErrors();
|
||||
}
|
||||
if (error == null) {
|
||||
// We can finally start the forge eventbus up
|
||||
MinecraftForge.EVENT_BUS.start();
|
||||
}
|
||||
if (error != null || !warnings.isEmpty()) {
|
||||
mc.displayGuiScreen(new LoadingErrorScreen(error, warnings));
|
||||
return true;
|
||||
} else {
|
||||
ClientHooks.logMissingTextureErrors();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static void renderProgressText() {
|
||||
|
||||
Reference in new issue
Block a user