mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-12 21:36:21 -04:00
Fix #1405
This commit is contained in:
parent
0b06bf82d8
commit
c808225f78
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user