From 32dc99c8c07261c9be871ec93f53098fda22b56e Mon Sep 17 00:00:00 2001 From: ACGaming <4818419+ACGaming@users.noreply.github.com> Date: Mon, 4 Mar 2024 18:00:02 +0100 Subject: [PATCH] Use qualified exit for critical errors --- .../src/main/java/net/jan/moddirector/core/ModDirector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod-director-core/src/main/java/net/jan/moddirector/core/ModDirector.java b/mod-director-core/src/main/java/net/jan/moddirector/core/ModDirector.java index a2a13ad..2142c5e 100644 --- a/mod-director-core/src/main/java/net/jan/moddirector/core/ModDirector.java +++ b/mod-director-core/src/main/java/net/jan/moddirector/core/ModDirector.java @@ -18,6 +18,7 @@ import net.jan.moddirector.core.ui.page.ProgressPage; import net.jan.moddirector.core.util.WebClient; import net.jan.moddirector.core.util.WebGetResponse; +import net.minecraftforge.fml.exit.QualifiedExit; import java.io.BufferedReader; import java.io.IOException; @@ -240,7 +241,7 @@ public void errorExit() { }); logger.log(ModDirectorSeverityLevel.ERROR, "ModDirector", "CORE", "============================================================"); - System.exit(1); + QualifiedExit.exit(1); } private void awaitAll(List> futures) throws InterruptedException {