mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Merge branch 'start-on-first-thread' of https://github.com/shadowfacts/fabric-loom into shadowfacts-start-on-first-thread
This commit is contained in:
@@ -78,6 +78,7 @@ public class RunClientTask extends JavaExec {
|
||||
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
|
||||
List<String> args = new ArrayList<>(super.getJvmArgs());
|
||||
args.add("-Dfabric.development=true");
|
||||
args.add("-XstartOnFirstThread");
|
||||
return args;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ public class RunServerTask extends JavaExec {
|
||||
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
|
||||
List<String> args = new ArrayList<>(super.getJvmArgs());
|
||||
args.add("-Dfabric.development=true");
|
||||
args.add("-XstartOnFirstThread");
|
||||
return args;
|
||||
}
|
||||
|
||||
|
||||
@@ -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";
|
||||
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() + "\"";
|
||||
|
||||
return ideaClient;
|
||||
|
||||
Reference in New Issue
Block a user