mirror of
https://github.com/GTNewHorizons/BetterCrashes.git
synced 2026-11-24 22:04:30 +00:00
try catch when we got IllegalStateException (#17)
This commit is contained in:
1 parent
99aad56a73
commit
065c16d864
1 file changed
+4
@@ -16,6 +16,7 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.crash.CrashReport;
|
||||
|
||||
@@ -137,6 +138,9 @@ public abstract class GuiProblemScreen extends GuiScreen {
|
||||
}
|
||||
boolean hasUnsupportedMods = !detectedUnsupportedModNames.isEmpty();
|
||||
|
||||
try {
|
||||
Tessellator.instance.draw();
|
||||
} catch (IllegalStateException ignored) {}
|
||||
drawDefaultBackground();
|
||||
drawCenteredString(
|
||||
fontRendererObj,
|
||||
|
||||
Reference in new issue
Block a user