mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[ANY] Bug fixes
This commit is contained in:
parent
a283f907d6
commit
8b396dfb13
1 changed files with 3 additions and 2 deletions
|
@ -93,6 +93,7 @@ public ProfilesRequestEvent getProfiles() throws Exception {
|
|||
return result;
|
||||
}
|
||||
|
||||
@SuppressWarnings("ConfusingArgumentToVarargsMethod")
|
||||
public void run(String... args) throws Throwable {
|
||||
initGson();
|
||||
AuthRequest.registerProviders();
|
||||
|
@ -173,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.invoke((Object) real_args);
|
||||
mainMethod.invokeWithArguments(real_args);
|
||||
} else {
|
||||
mainMethod.invoke((Object) config.args.toArray(new String[0]));
|
||||
mainMethod.invokeWithArguments(config.args.toArray(new String[0]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue