Fix macOS crash automatically and remove server run config

This commit is contained in:
ILikePlayingGames 2023-09-09 21:17:24 -04:00
parent 3bf02a0899
commit f3ef0f11d5

View file

@ -1,3 +1,5 @@
import org.apache.commons.lang3.SystemUtils
plugins {
idea
java
@ -30,6 +32,15 @@ loom {
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 {
pack200Provider.set(dev.architectury.pack200.java.Pack200Adapter())
// If you don't want mixins, remove this lines