From c86d10bcefe736bba3b336d91a80e03d5ccc81cb Mon Sep 17 00:00:00 2001 From: PeratX Date: Sun, 22 May 2022 09:48:47 +0800 Subject: [PATCH] loader: init logger after jansi --- src/main/java/org/itxtech/mcl/Loader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/itxtech/mcl/Loader.java b/src/main/java/org/itxtech/mcl/Loader.java index 543c0ae..a06a9c4 100644 --- a/src/main/java/org/itxtech/mcl/Loader.java +++ b/src/main/java/org/itxtech/mcl/Loader.java @@ -67,7 +67,6 @@ public Loader() { public static void main(String[] args) { var loader = new Loader(); try { - loader.loadConfig(); if (!Boolean.getBoolean("mcl.disable-ansi")) { if (!Boolean.getBoolean("mcl.no-ansi-console-init")) { AnsiConsole.systemInstall(); @@ -76,6 +75,7 @@ public static void main(String[] args) { } else { Ansi.setEnabled(false); } + loader.loadConfig(); loader.start(args); } catch (Exception e) { loader.logger.logException(e);