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
|
useFabricMixin = true
|
||||||
if (JavaVersion.current().isJava9Compatible) {
|
if (JavaVersion.current().isJava9Compatible) {
|
||||||
runs {
|
runs {
|
||||||
val args: List<String> = listOf("--illegal-access=permit")
|
val args: MutableList<String> = mutableListOf("-Dfml.earlyprogresswindow=false")
|
||||||
if (JavaVersion.current() < JavaVersion.VERSION_17) {
|
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")
|
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 {
|
this.forEach {
|
||||||
it.vmArgs(args)
|
it.vmArgs(args)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue