Skip to content

Commit

Permalink
Fix macOS crash automatically and remove server run config
Browse files Browse the repository at this point in the history
  • Loading branch information
ILikePlayingGames committed Sep 10, 2023
1 parent 3bf02a0 commit f3ef0f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.apache.commons.lang3.SystemUtils

plugins {
idea
java
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3ef0f1

Please sign in to comment.