3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-08 02:40:09 +02:00

GUI: Don't exit if there is a config error (#1600)

Leave the window open so the user understands there is an error.

This also changes the exit code to 1 when exiting without a GUI since we have an error.
Dieser Commit ist enthalten in:
Camotoy 2020-11-27 18:55:33 -05:00 committet von GitHub
Ursprung da2dc69441
Commit 0215c383b0
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -204,7 +204,12 @@ public class GeyserStandaloneBootstrap implements GeyserBootstrap {
}
} catch (IOException ex) {
geyserLogger.severe(LanguageUtils.getLocaleStringLog("geyser.config.failed"), ex);
System.exit(0);
if (gui == null) {
System.exit(1);
} else {
// Leave the process running so the GUI is still visible
return;
}
}
GeyserConfiguration.checkGeyserConfiguration(geyserConfig, geyserLogger);