diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerAgent.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerAgent.java index 40113014..8534bcdc 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerAgent.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerAgent.java @@ -62,8 +62,7 @@ public static void premain(String agentArgument, Instrumentation instrumentation try { proxyClass = Class.forName(proxyClassName); MethodHandle mainMethod = MethodHandles.publicLookup().findStatic(proxyClass, "premain", MethodType.methodType(void.class, String.class, Instrumentation.class)); - Object[] args = {agentArgument, instrumentation}; - mainMethod.invoke(null, args); + mainMethod.invoke(agentArgument, instrumentation); } catch (Throwable e) { LogHelper.error(e); }