[FIX] Указание аргументов для сервера

This commit is contained in:
Gravit 2019-02-05 19:30:56 +07:00
parent 795bca03a3
commit 662b76b09c
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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);
}
}