Correctly add arguments to the runClient configuration on forge
This commit is contained in:
parent
4a470ee779
commit
492db81bb4
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue