[FIX] Agent работает.

This commit is contained in:
Zaxar163 2019-04-07 11:26:35 +03:00
parent b7673cf134
commit 76a9c07a48
No known key found for this signature in database
GPG key ID: 1FE4F2E1F053831B

View file

@ -366,7 +366,7 @@ public static Process launch(
Collections.addAll(context.args, profile.getJvmArgs()); Collections.addAll(context.args, profile.getJvmArgs());
profile.pushOptionalJvmArgs(context.args); profile.pushOptionalJvmArgs(context.args);
Collections.addAll(context.args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path Collections.addAll(context.args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path
Collections.addAll(context.args, "-javaagent:".concat(pathLauncher)); Collections.addAll(context.args, "-javaagent:".concat(pathLauncher).concat("=pr"));
LauncherGuardManager.guard.addCustomParams(context); LauncherGuardManager.guard.addCustomParams(context);
Collections.addAll(context.args, ClientLauncher.class.getName()); Collections.addAll(context.args, ClientLauncher.class.getName());