[FIX] Slf4j fix

This commit is contained in:
Gravita 2024-01-23 19:11:33 +07:00
parent f1922c52e2
commit 2fdd7d0199
3 changed files with 4 additions and 5 deletions

View file

@ -158,8 +158,8 @@ public void verify() {
if (!updateMirror) { if (!updateMirror) {
for (int i = 0; i < mirrors.length; ++i) { for (int i = 0; i < mirrors.length; ++i) {
if (mirrors[i] != null && oldMirrorList.contains(mirrors[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]); 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.5.x/"; mirrors[i] = "https://mirror.gravitlauncher.com/5.6.x/";
} }
} }
} }

View file

@ -5,8 +5,8 @@
public final class Version implements Comparable<Version> { public final class Version implements Comparable<Version> {
public static final int MAJOR = 5; public static final int MAJOR = 5;
public static final int MINOR = 5; public static final int MINOR = 6;
public static final int PATCH = 3; public static final int PATCH = 0;
public static final int BUILD = 1; public static final int BUILD = 1;
public static final Version.Type RELEASE = Type.EXPERIMENTAL; public static final Version.Type RELEASE = Type.EXPERIMENTAL;
public final int major; public final int major;

View file

@ -31,7 +31,6 @@ public final class LogHelper {
boolean useSlf4j = false; boolean useSlf4j = false;
try { try {
Class.forName("org.slf4j.Logger", false, LogHelper.class.getClassLoader()); 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); useSlf4j = !Boolean.getBoolean(NO_SLF4J_PROPERTY);
} catch (ClassNotFoundException ignored) { } catch (ClassNotFoundException ignored) {
} }