mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[FIX] Client start hotfix
This commit is contained in:
parent
4dc79f320d
commit
d995b3508c
2 changed files with 3 additions and 2 deletions
|
@ -125,8 +125,10 @@ public static void main(String[] args) throws Throwable {
|
|||
RequestService service;
|
||||
if(params.offlineMode) {
|
||||
service = initOffline(LauncherEngine.modulesManager, params);
|
||||
Request.setRequestService(service);
|
||||
} else {
|
||||
service = StdWebSocketService.initWebSockets(Launcher.getConfig().address).get();
|
||||
Request.setRequestService(service);
|
||||
LogHelper.debug("Restore sessions");
|
||||
Request.restore();
|
||||
service.registerEventHandler(new BasicLauncherEventHandler());
|
||||
|
@ -141,7 +143,6 @@ public static void main(String[] args) throws Throwable {
|
|||
}
|
||||
};
|
||||
}
|
||||
Request.setRequestService(service);
|
||||
ClientProfile.ClassLoaderConfig classLoaderConfig = profile.getClassLoaderConfig();
|
||||
if (classLoaderConfig == ClientProfile.ClassLoaderConfig.LAUNCHER) {
|
||||
ClientClassLoader classLoader = new ClientClassLoader(classpath.toArray(new URL[0]), ClassLoader.getSystemClassLoader());
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
id 'org.openjfx.javafxplugin' version '0.0.10' apply false
|
||||
}
|
||||
group = 'pro.gravit.launcher'
|
||||
version = '5.2.6'
|
||||
version = '5.2.6 '
|
||||
|
||||
apply from: 'props.gradle'
|
||||
|
||||
|
|
Loading…
Reference in a new issue