Correctly add arguments to the runClient configuration on forge

This commit is contained in:
Username404-59 2021-04-13 14:43:41 +02:00
parent 4a470ee779
commit 492db81bb4
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 3 deletions

View File

@ -8,10 +8,10 @@ dependencies {
useFabricMixin = true
if (JavaVersion.current().isJava9Compatible) {
runs {
val args: List<String> = listOf("--illegal-access=permit")
if (JavaVersion.current() < JavaVersion.VERSION_17) {
val args: MutableList<String> = 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)
}