mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 17:19:47 +03:00
Merge pull request #542 from Dbarkovski/patch-1
Fix support ServerWrapper 1.18
This commit is contained in:
commit
3b8a01fbb4
1 changed files with 6 additions and 6 deletions
|
@ -86,12 +86,12 @@ public void run() throws Exception {
|
||||||
((AutoCloseable) Request.getRequestService()).close();
|
((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)");
|
if(wrapper.profile != null && wrapper.profile.getVersion().compareTo(ClientProfile.Version.MC118) >= 0) {
|
||||||
wrapper.config.classpath.add(jarName);
|
LogHelper.info("Switch to alternative start mode (1.18)");
|
||||||
wrapper.config.classLoaderConfig = ClientProfile.ClassLoaderConfig.LAUNCHER;
|
wrapper.config.classpath.add(jarName);
|
||||||
altMode = true;
|
wrapper.config.classLoaderConfig = ClientProfile.ClassLoaderConfig.LAUNCHER;
|
||||||
}
|
altMode = true;
|
||||||
}
|
}
|
||||||
wrapper.saveConfig();
|
wrapper.saveConfig();
|
||||||
LogHelper.info("Generate start script");
|
LogHelper.info("Generate start script");
|
||||||
|
|
Loading…
Reference in a new issue