From 8290321512f54a50f405be19a4214991368671b8 Mon Sep 17 00:00:00 2001 From: Gravita Date: Sat, 29 May 2021 04:42:09 +0700 Subject: [PATCH] [FIX] RuntimeInClient fixes --- .../main/java/pro/gravit/launcher/ClientLauncherWrapper.java | 2 ++ .../java/pro/gravit/launcher/client/ClientLauncherProcess.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java b/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java index adc05e62..b1351ba2 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java +++ b/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java @@ -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); diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherProcess.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherProcess.java index 60a625e4..75ba55f7 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherProcess.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncherProcess.java @@ -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)); }