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) }