From 9a1498716f6986034c816b100b217a4be2576e77 Mon Sep 17 00:00:00 2001 From: XuTpbl_JIuC Date: Wed, 8 Dec 2021 17:17:14 +0300 Subject: [PATCH] Fix support ServerWrapper 1.18 --- .../launcher/server/setup/ServerWrapperSetup.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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..37e1f8b7 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,12 +86,12 @@ public void run() throws Exception { ((AutoCloseable) Request.getRequestService()).close(); } } - 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; - } + } + 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");