diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java index 82b74c86..b775aa40 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java @@ -174,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.invokeWithArguments(real_args); + mainMethod.invoke(real_args); } else { - mainMethod.invokeWithArguments(config.args.toArray(new String[0])); + mainMethod.invoke(config.args.toArray(new String[0])); } }