mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-03 05:57:42 -05:00
Only add -XstartOnFirstThread on mac os
This commit is contained in:
@@ -92,7 +92,7 @@ public class RunConfig {
|
||||
ideaClient.projectName = project.getName();
|
||||
ideaClient.configName = "Minecraft Client";
|
||||
ideaClient.runDir = "file://$PROJECT_DIR$/" + extension.runDir;
|
||||
ideaClient.vmArgs = "-Dfabric.development=true -XstartOnFirstThread";
|
||||
ideaClient.vmArgs = "-Dfabric.development=true" + getOSClientJVMArgs();
|
||||
ideaClient.programArgs = "--tweakClass " + Constants.FABRIC_CLIENT_TWEAKER + " --assetIndex " + minecraftVersionInfo.assetIndex.getFabricId(extension.getMinecraftProvider().minecraftVersion) + " --assetsDir \"" + new File(extension.getUserCache(), "assets").getAbsolutePath() + "\"";
|
||||
|
||||
return ideaClient;
|
||||
@@ -125,4 +125,11 @@ public class RunConfig {
|
||||
|
||||
return dummyConfig;
|
||||
}
|
||||
|
||||
public static String getOSClientJVMArgs(){
|
||||
if(OperatingSystem.getOS().equalsIgnoreCase("osx")){
|
||||
return " -XstartOnFirstThread";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user