mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Invoke mainclass for non-vargs main method
This commit is contained in:
parent
39bdab50ca
commit
d99f24c389
1 changed files with 2 additions and 2 deletions
|
@ -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]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue