From 2fdd7d0199aa07e037f87c55793bcdbb403cb1e2 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:11:33 +0700 Subject: [PATCH] [FIX] Slf4j fix --- .../pro/gravit/launchserver/config/LaunchServerConfig.java | 4 ++-- LauncherCore/src/main/java/pro/gravit/utils/Version.java | 4 ++-- .../src/main/java/pro/gravit/utils/helper/LogHelper.java | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java b/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java index f3fcfd8d..be906d4a 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java @@ -158,8 +158,8 @@ public void verify() { if (!updateMirror) { for (int i = 0; i < mirrors.length; ++i) { if (mirrors[i] != null && oldMirrorList.contains(mirrors[i])) { - logger.warn("Replace mirror '{}' to 'https://mirror.gravitlauncher.com/5.5.x/'. If you really need to use original url, use '-Dlaunchserver.config.disableUpdateMirror=true'", mirrors[i]); - mirrors[i] = "https://mirror.gravitlauncher.com/5.5.x/"; + logger.warn("Replace mirror '{}' to 'https://mirror.gravitlauncher.com/5.6.x/'. If you really need to use original url, use '-Dlaunchserver.config.disableUpdateMirror=true'", mirrors[i]); + mirrors[i] = "https://mirror.gravitlauncher.com/5.6.x/"; } } } diff --git a/LauncherCore/src/main/java/pro/gravit/utils/Version.java b/LauncherCore/src/main/java/pro/gravit/utils/Version.java index db44d40f..62fb4e33 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/Version.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/Version.java @@ -5,8 +5,8 @@ public final class Version implements Comparable { public static final int MAJOR = 5; - public static final int MINOR = 5; - public static final int PATCH = 3; + public static final int MINOR = 6; + public static final int PATCH = 0; public static final int BUILD = 1; public static final Version.Type RELEASE = Type.EXPERIMENTAL; public final int major; diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java index 36d6b00b..9ba2af43 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/LogHelper.java @@ -31,7 +31,6 @@ public final class LogHelper { boolean useSlf4j = false; try { Class.forName("org.slf4j.Logger", false, LogHelper.class.getClassLoader()); - Class.forName("org.slf4j.impl.StaticLoggerBinder", false, LogHelper.class.getClassLoader()); useSlf4j = !Boolean.getBoolean(NO_SLF4J_PROPERTY); } catch (ClassNotFoundException ignored) { }