mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Указание аргументов для сервера
This commit is contained in:
parent
795bca03a3
commit
662b76b09c
1 changed files with 2 additions and 4 deletions
|
@ -161,14 +161,12 @@ public static void main(String... args) throws Throwable {
|
|||
{
|
||||
String[] real_args = new String[args.length - 1];
|
||||
System.arraycopy(args, 1, real_args, 0, args.length - 1);
|
||||
Object[] args_array = { real_args };
|
||||
mainMethod.invoke(args_array);
|
||||
mainMethod.invoke(real_args);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Object[] args_array = { config.args };
|
||||
mainMethod.invoke(args_array);
|
||||
mainMethod.invoke(config.args);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue