[ANY] Bug fixes

This commit is contained in:
Gravita 2021-10-14 20:54:44 +07:00
parent a283f907d6
commit 8b396dfb13

View file

@ -93,6 +93,7 @@ public ProfilesRequestEvent getProfiles() throws Exception {
return result; return result;
} }
@SuppressWarnings("ConfusingArgumentToVarargsMethod")
public void run(String... args) throws Throwable { public void run(String... args) throws Throwable {
initGson(); initGson();
AuthRequest.registerProviders(); AuthRequest.registerProviders();
@ -173,9 +174,9 @@ public void run(String... args) throws Throwable {
System.arraycopy(args, 1, real_args, 0, args.length - 1); System.arraycopy(args, 1, real_args, 0, args.length - 1);
} else real_args = args; } else real_args = args;
mainMethod.invoke((Object) real_args); mainMethod.invokeWithArguments(real_args);
} else { } else {
mainMethod.invoke((Object) config.args.toArray(new String[0])); mainMethod.invokeWithArguments(config.args.toArray(new String[0]));
} }
} }