Skip to content

Commit

Permalink
Pause Forge's SplashProgress before displaying init screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Runemoro committed Jun 2, 2018
1 parent 0cd599b commit 14bdbe4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import net.minecraft.util.ReportedException;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.fml.client.SplashProgress;
import org.apache.logging.log4j.Logger;
import org.dimdev.vanillafix.ModConfig;
import org.dimdev.vanillafix.VanillaFix;
Expand Down Expand Up @@ -182,6 +183,8 @@ public void displayInitErrorScreen(CrashReport report) {
mcResourceManager.registerReloadListener(mcSoundHandler);

running = true;
//noinspection deprecation
SplashProgress.pause();// Disable the forge splash progress screen
runGUILoop(new GuiInitErrorScreen(report));
} catch (Throwable t) {
LOGGER.error("An uncaught exception occured while displaying the init error screen, making normal report instead", t);
Expand Down Expand Up @@ -232,7 +235,7 @@ private void runGUILoop(GuiScreen screen) throws IOException {
updateDisplay();
Thread.yield();
Display.sync(60);
checkGLError("GUI Loop");
checkGLError("VanillaFix GUI Loop");
}
}

Expand Down

0 comments on commit 14bdbe4

Please sign in to comment.