This commit is contained in:
ZekerZhayard 2022-03-20 19:40:15 +08:00 committed by Yuhui Huang
parent 0b06bf82d8
commit c808225f78

View File

@ -51,11 +51,12 @@ public final class VersionLibraryBuilder {
// Since $ will be escaped in linux, and our maintain of minecraftArgument will not cause escaping, // Since $ will be escaped in linux, and our maintain of minecraftArgument will not cause escaping,
// so we regenerate the minecraftArgument without escaping. // so we regenerate the minecraftArgument without escaping.
ret = ret.setMinecraftArguments(new CommandBuilder().addAllWithoutParsing(mcArgs).toString()); ret = ret.setMinecraftArguments(new CommandBuilder().addAllWithoutParsing(mcArgs).toString());
} } else {
return ret.setArguments(ret.getArguments() ret = ret.setArguments(ret.getArguments()
.map(args -> args.withGame(game)) .map(args -> args.withGame(game))
.map(args -> jvmChanged ? args.withJvm(jvm) : args).orElse(new Arguments(game, jvmChanged ? jvm : null))) .map(args -> jvmChanged ? args.withJvm(jvm) : args).orElse(new Arguments(game, jvmChanged ? jvm : null)));
.setLibraries(libraries); }
return ret.setLibraries(libraries);
} }
public boolean hasTweakClass(String tweakClass) { public boolean hasTweakClass(String tweakClass) {