From d995b3508c12f99f598a1536691a06b430c77f6c Mon Sep 17 00:00:00 2001 From: Gravita Date: Wed, 17 Nov 2021 01:00:31 +0700 Subject: [PATCH] [FIX] Client start hotfix --- .../pro/gravit/launcher/client/ClientLauncherEntryPoint.java | 3 ++- build.gradle | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherEntryPoint.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherEntryPoint.java index 2c6e72b4..8453a7d1 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherEntryPoint.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherEntryPoint.java @@ -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()); diff --git a/build.gradle b/build.gradle index 82b01e65..cfac7e79 100644 --- a/build.gradle +++ b/build.gradle @@ -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'