diff --git a/src/main/java/net/knarcraft/minecraftserverlauncher/profile/ServerLauncherController.java b/src/main/java/net/knarcraft/minecraftserverlauncher/profile/ServerLauncherController.java index a427597..5237002 100644 --- a/src/main/java/net/knarcraft/minecraftserverlauncher/profile/ServerLauncherController.java +++ b/src/main/java/net/knarcraft/minecraftserverlauncher/profile/ServerLauncherController.java @@ -310,8 +310,12 @@ public class ServerLauncherController { this.downloadAllJars = Boolean.parseBoolean(loadedData.get("downloadAllJars")); if (!silent) { - this.serverLauncherGUI = new ServerLauncherGUI(Integer.parseInt(loadedData.get("guiWidth")), - Integer.parseInt(loadedData.get("guiHeight"))); + if (loadedData.get("guiWidth") != null && loadedData.get("guiHeight") != null) { + this.serverLauncherGUI = new ServerLauncherGUI(Integer.parseInt(loadedData.get("guiWidth")), + Integer.parseInt(loadedData.get("guiHeight"))); + } else { + this.serverLauncherGUI = new ServerLauncherGUI(); + } } else { this.serverLauncherGUI = new ServerLauncherGUI(true); }