[FIX] Фикс NPE при использовании врапперов

This commit is contained in:
Gravit 2019-02-07 08:11:59 +07:00
parent f9129c28d2
commit 7024c1325c

View file

@ -361,6 +361,7 @@ public static Process launch(
}
// Add classpath and main class
String pathLauncher = IOHelper.getCodeSource(ClientLauncher.class).toString();
context.pathLauncher = pathLauncher;
Collections.addAll(context.args, profile.getJvmArgs());
profile.pushOptionalJvmArgs(context.args);
Collections.addAll(context.args, "-Djava.library.path=".concat(params.clientDir.resolve(NATIVES_DIR).toString())); // Add Native Path