From d99f24c3892859b7310aecdaab242019bc694064 Mon Sep 17 00:00:00 2001 From: Gravita Date: Sat, 16 Oct 2021 00:38:52 +0700 Subject: [PATCH 1/2] [FIX] Invoke mainclass for non-vargs main method --- .../main/java/pro/gravit/launcher/server/ServerWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java index 82b74c86..b775aa40 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java @@ -174,9 +174,9 @@ public void run(String... args) throws Throwable { System.arraycopy(args, 1, real_args, 0, args.length - 1); } else real_args = args; - mainMethod.invokeWithArguments(real_args); + mainMethod.invoke(real_args); } else { - mainMethod.invokeWithArguments(config.args.toArray(new String[0])); + mainMethod.invoke(config.args.toArray(new String[0])); } } From f3a095966be458f25ae2610a759e71d570ad9b55 Mon Sep 17 00:00:00 2001 From: Gravita Date: Sat, 16 Oct 2021 00:39:55 +0700 Subject: [PATCH 2/2] [ANY] 5.2.4b2 hotfix --- LauncherCore/src/main/java/pro/gravit/utils/Version.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LauncherCore/src/main/java/pro/gravit/utils/Version.java b/LauncherCore/src/main/java/pro/gravit/utils/Version.java index 5d08f671..b684fb3c 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/Version.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/Version.java @@ -7,7 +7,7 @@ public final class Version implements Comparable { public static final int MAJOR = 5; public static final int MINOR = 2; public static final int PATCH = 4; - public static final int BUILD = 1; + public static final int BUILD = 2; public static final Version.Type RELEASE = Type.STABLE; public final int major; public final int minor;