[FIX] RuntimeInClient fixes

This commit is contained in:
Gravita 2021-05-29 04:42:09 +07:00
parent 5920f524c7
commit 8290321512
2 changed files with 4 additions and 0 deletions

View file

@ -98,6 +98,8 @@ public static void main(String[] arguments) throws IOException, InterruptedExcep
context.jvmModules.add("javafx.fxml");
context.jvmModules.add("javafx.controls");
context.jvmModules.add("javafx.swing");
context.jvmModules.add("javafx.media");
context.jvmModules.add("javafx.web");
context.args.add(MAGIC_ARG);
context.args.add("-XX:+DisableAttachMechanism");
EnvHelper.addEnv(context.processBuilder);

View file

@ -134,6 +134,8 @@ private void applyClientProfile() {
jvmModules.add("javafx.fxml");
jvmModules.add("javafx.controls");
jvmModules.add("javafx.swing");
jvmModules.add("javafx.media");
jvmModules.add("javafx.web");
}
LauncherEngine.modulesManager.invokeEvent(new ClientProcessBuilderCreateEvent(this));
}