Fix macOS crash automatically and remove server run config
This commit is contained in:
parent
3bf02a0899
commit
f3ef0f11d5
1 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import org.apache.commons.lang3.SystemUtils
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
idea
|
idea
|
||||||
java
|
java
|
||||||
|
@ -30,6 +32,15 @@ loom {
|
||||||
arg("--tweakClass", "org.spongepowered.asm.launch.MixinTweaker")
|
arg("--tweakClass", "org.spongepowered.asm.launch.MixinTweaker")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
runConfigs {
|
||||||
|
"client" {
|
||||||
|
if (SystemUtils.IS_OS_MAC_OSX) {
|
||||||
|
// This argument causes a crash on macOS
|
||||||
|
vmArgs.remove("-XstartOnFirstThread")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
remove(getByName("server"))
|
||||||
|
}
|
||||||
forge {
|
forge {
|
||||||
pack200Provider.set(dev.architectury.pack200.java.Pack200Adapter())
|
pack200Provider.set(dev.architectury.pack200.java.Pack200Adapter())
|
||||||
// If you don't want mixins, remove this lines
|
// If you don't want mixins, remove this lines
|
||||||
|
|
Loading…
Add table
Reference in a new issue