[FIX] Invoke mainclass for non-vargs main method

This commit is contained in:
Gravita 2021-10-16 00:38:52 +07:00
parent 39bdab50ca
commit d99f24c389

View file

@ -174,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.invokeWithArguments(real_args); mainMethod.invoke(real_args);
} else { } else {
mainMethod.invokeWithArguments(config.args.toArray(new String[0])); mainMethod.invoke(config.args.toArray(new String[0]));
} }
} }