mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-01 14:04:03 +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];
|
String[] real_args = new String[args.length - 1];
|
||||||
System.arraycopy(args, 1, real_args, 0, args.length - 1);
|
System.arraycopy(args, 1, real_args, 0, args.length - 1);
|
||||||
Object[] args_array = { real_args };
|
mainMethod.invoke(real_args);
|
||||||
mainMethod.invoke(args_array);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Object[] args_array = { config.args };
|
mainMethod.invoke(config.args);
|
||||||
mainMethod.invoke(args_array);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue