From d346840548416bab1ac361536a183ed132d27182 Mon Sep 17 00:00:00 2001 From: XuTpbl_JIuC Date: Tue, 7 Dec 2021 13:45:54 +0300 Subject: [PATCH] Fix Support 1.18 --- .../pro/gravit/launcher/server/setup/ServerWrapperSetup.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java index 94194432..5c7e8fe3 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java @@ -86,13 +86,14 @@ public void run() throws Exception { ((AutoCloseable) Request.getRequestService()).close(); } } - if(wrapper.profile != null && wrapper.profile.getVersion().compareTo(ClientProfile.Version.MC118) >= 0) { + } + if(wrapper.profile != null && wrapper.profile.getVersion().compareTo(ClientProfile.Version.MC118) >= 0) { LogHelper.info("Switch to alternative start mode (1.18)"); wrapper.config.classpath.add(jarName); wrapper.config.classLoaderConfig = ClientProfile.ClassLoaderConfig.LAUNCHER; altMode = true; } - } + wrapper.saveConfig(); LogHelper.info("Generate start script"); Path startScript;