parent
b27bc3d39a
commit
9f6c8486fb
|
@ -113,10 +113,9 @@ public class RunConfig {
|
||||||
|
|
||||||
if ("launchwrapper".equals(extension.getLoaderLaunchMethod())) {
|
if ("launchwrapper".equals(extension.getLoaderLaunchMethod())) {
|
||||||
runConfig.mainClass = "net.minecraft.launchwrapper.Launch";
|
runConfig.mainClass = "net.minecraft.launchwrapper.Launch";
|
||||||
runConfig.programArgs = "--tweakClass " + ("client".equals(mode) ? Constants.LaunchWrapper.DEFAULT_FABRIC_CLIENT_TWEAKER : Constants.LaunchWrapper.DEFAULT_FABRIC_SERVER_TWEAKER);
|
runConfig.programArgs += "--tweakClass " + ("client".equals(mode) ? Constants.LaunchWrapper.DEFAULT_FABRIC_CLIENT_TWEAKER : Constants.LaunchWrapper.DEFAULT_FABRIC_SERVER_TWEAKER);
|
||||||
} else {
|
} else {
|
||||||
runConfig.mainClass = "net.fabricmc.devlaunchinjector.Main";
|
runConfig.mainClass = "net.fabricmc.devlaunchinjector.Main";
|
||||||
runConfig.programArgs = "";
|
|
||||||
runConfig.vmArgs = "-Dfabric.dli.config=" + encodeEscaped(extension.getDevLauncherConfig().getAbsolutePath()) + " -Dfabric.dli.env=" + mode.toLowerCase();
|
runConfig.vmArgs = "-Dfabric.dli.config=" + encodeEscaped(extension.getDevLauncherConfig().getAbsolutePath()) + " -Dfabric.dli.env=" + mode.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,6 +154,7 @@ public class RunConfig {
|
||||||
|
|
||||||
RunConfig ideaClient = new RunConfig();
|
RunConfig ideaClient = new RunConfig();
|
||||||
ideaClient.configName = "Minecraft Client";
|
ideaClient.configName = "Minecraft Client";
|
||||||
|
ideaClient.programArgs = "";
|
||||||
populate(project, extension, ideaClient, "client");
|
populate(project, extension, ideaClient, "client");
|
||||||
ideaClient.vmArgs += getOSClientJVMArgs();
|
ideaClient.vmArgs += getOSClientJVMArgs();
|
||||||
ideaClient.vmArgs += " -Dfabric.dli.main=" + getMainClass("client", extension);
|
ideaClient.vmArgs += " -Dfabric.dli.main=" + getMainClass("client", extension);
|
||||||
|
@ -167,6 +167,7 @@ public class RunConfig {
|
||||||
|
|
||||||
RunConfig ideaServer = new RunConfig();
|
RunConfig ideaServer = new RunConfig();
|
||||||
ideaServer.configName = "Minecraft Server";
|
ideaServer.configName = "Minecraft Server";
|
||||||
|
ideaServer.programArgs = "nogui ";
|
||||||
populate(project, extension, ideaServer, "server");
|
populate(project, extension, ideaServer, "server");
|
||||||
ideaServer.vmArgs += " -Dfabric.dli.main=" + getMainClass("server", extension);
|
ideaServer.vmArgs += " -Dfabric.dli.main=" + getMainClass("server", extension);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue