Skip to content

Commit a603f16

Browse files
author
HackusatePvP
committed
Added catch statement to ignore window state issues.
1 parent ec3a8fb commit a603f16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/me/piitex/renjava/gui/GuiLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public GuiLoader(Stage stage, RenJava renJava, HostServices services) {
4141

4242
private void buildSplashScreen() {
4343
RenLogger.LOGGER.info("Creating Splash screen...");
44-
stage.initStyle(StageStyle.UNDECORATED);
44+
try {
45+
stage.initStyle(StageStyle.UNDECORATED);
46+
} catch (IllegalStateException ignored) {}
4547
// Update Stage
4648
RenJava.PLAYER.setCurrentStageType(StageType.MAIN_MENU);
4749

0 commit comments

Comments
 (0)