From 492db81bb408dba0e93f12c9fdd68749c8e967b7 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 13 Apr 2021 14:43:41 +0200 Subject: [PATCH] Correctly add arguments to the runClient configuration on forge --- forge/build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forge/build.gradle.kts b/forge/build.gradle.kts index 7a05910..3e3a014 100644 --- a/forge/build.gradle.kts +++ b/forge/build.gradle.kts @@ -8,10 +8,10 @@ dependencies { useFabricMixin = true if (JavaVersion.current().isJava9Compatible) { runs { - val args: List = listOf("--illegal-access=permit") - if (JavaVersion.current() < JavaVersion.VERSION_17) { + val args: MutableList = mutableListOf("-Dfml.earlyprogresswindow=false") + args += if (JavaVersion.current() < JavaVersion.VERSION_17) { listOf("--add-exports java.base/sun.security.util=ALL-UNNAMED", "--add-opens java.base/java.util.jar=ALL-UNNAMED") - } + } else listOf("--illegal-access=permit") this.forEach { it.vmArgs(args) }