From 94b2fb1424e97154416d4373a22653b10fa86674 Mon Sep 17 00:00:00 2001 From: Gravit Date: Fri, 28 Jun 2019 15:01:18 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=A4=D0=B8=D0=BA=D1=81=20=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D1=81=D1=84=D0=B5=D1=80=D0=B0=20=D0=B0=D0=B3=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/pro/gravit/launcher/server/ServerAgent.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }