From f3ef0f11d513c03823045e5f63b6c041534190ce Mon Sep 17 00:00:00 2001 From: ILikePlayingGames <22475143+ILikePlayingGames@users.noreply.github.com> Date: Sat, 9 Sep 2023 21:17:24 -0400 Subject: Fix macOS crash automatically and remove server run config --- build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit