diff options
author | ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> | 2023-09-09 21:17:24 -0400 |
---|---|---|
committer | ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> | 2023-09-09 21:17:24 -0400 |
commit | f3ef0f11d513c03823045e5f63b6c041534190ce (patch) | |
tree | e4dab5b24787798f81ce1ed530c6cf4ed049c947 | |
parent | 3bf02a0899db86919f4315dc3892fa770847769a (diff) | |
download | Forge1.8.9Template-f3ef0f11d513c03823045e5f63b6c041534190ce.tar.gz Forge1.8.9Template-f3ef0f11d513c03823045e5f63b6c041534190ce.tar.bz2 Forge1.8.9Template-f3ef0f11d513c03823045e5f63b6c041534190ce.zip |
Fix macOS crash automatically and remove server run config
-rw-r--r-- | build.gradle.kts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 95ec687..7286e59 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 |