Add -XstartOnFirstThread, required when running on macOS

dev/0.11
Shadowfacts 2018-12-10 20:47:02 -05:00
parent f8bcf214f8
commit 8a0c05eadb
No known key found for this signature in database
GPG Key ID: 94A5AB95422746E5
3 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,7 @@ public class RunClientTask extends JavaExec {
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class); LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
List<String> args = new ArrayList<>(); List<String> args = new ArrayList<>();
args.add("-Dfabric.development=true"); args.add("-Dfabric.development=true");
args.add("-XstartOnFirstThread");
return args; return args;
} }

View File

@ -75,6 +75,7 @@ public class RunServerTask extends JavaExec {
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class); LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
List<String> args = new ArrayList<>(); List<String> args = new ArrayList<>();
args.add("-Dfabric.development=true"); args.add("-Dfabric.development=true");
args.add("-XstartOnFirstThread");
return args; return args;
} }

View File

@ -92,7 +92,7 @@ public class IdeaRunConfig {
ideaClient.projectName = project.getName(); ideaClient.projectName = project.getName();
ideaClient.configName = "Minecraft Client"; ideaClient.configName = "Minecraft Client";
ideaClient.runDir = "file://$PROJECT_DIR$/" + extension.runDir; ideaClient.runDir = "file://$PROJECT_DIR$/" + extension.runDir;
ideaClient.vmArgs = "-Dfabric.development=true"; ideaClient.vmArgs = "-Dfabric.development=true -XstartOnFirstThread";
ideaClient.programArgs = "--tweakClass " + Constants.FABRIC_CLIENT_TWEAKER + " --assetIndex " + minecraftVersionInfo.assetIndex.getFabricId(extension.getMinecraftProvider().minecraftVersion) + " --assetsDir \"" + new File(extension.getUserCache(), "assets").getAbsolutePath() + "\""; ideaClient.programArgs = "--tweakClass " + Constants.FABRIC_CLIENT_TWEAKER + " --assetIndex " + minecraftVersionInfo.assetIndex.getFabricId(extension.getMinecraftProvider().minecraftVersion) + " --assetsDir \"" + new File(extension.getUserCache(), "assets").getAbsolutePath() + "\"";
return ideaClient; return ideaClient;