Fix Forge run config generation

This commit is contained in:
Juuxel
2020-11-29 23:47:19 +02:00
parent 9d4b631fda
commit b882abe469

View File

@@ -113,6 +113,7 @@ public class RunConfig {
if (extension.isForge()) {
runConfig.mainClass = "net.minecraftforge.userdev.LaunchTesting";
runConfig.programArgs = "";
} else if ("launchwrapper".equals(extension.getLoaderLaunchMethod())) {
runConfig.mainClass = "net.minecraft.launchwrapper.Launch";
runConfig.programArgs = "--tweakClass " + ("client".equals(mode) ? Constants.LaunchWrapper.DEFAULT_FABRIC_CLIENT_TWEAKER : Constants.LaunchWrapper.DEFAULT_FABRIC_SERVER_TWEAKER);