fix: cannot change init window dimension

This commit is contained in:
huanghongxun
2020-02-21 00:23:21 +08:00
parent 6ad5ba3736
commit 0fa324452f

View File

@@ -46,8 +46,10 @@ public final class VersionLibraryBuilder {
// Since $ will be escaped in linux, and our maintain of minecraftArgument will not cause escaping,
// so we regenerate the minecraftArgument without escaping.
ret = ret.setMinecraftArguments(new CommandBuilder().addAllWithoutParsing(mcArgs).toString());
} else {
ret = ret.setArguments(ret.getArguments().map(args -> args.withGame(game)).orElse(new Arguments(game, null)));
}
return ret.setArguments(ret.getArguments().map(args -> args.withGame(game)).orElse(new Arguments(game, null)));
return ret;
}
public void removeTweakClass(String target) {
@@ -61,8 +63,7 @@ public final class VersionLibraryBuilder {
--i;
}
}
}
} else {
for (int i = 0; i + 1 < game.size(); ++i) {
Argument arg0 = game.get(i);
Argument arg1 = game.get(i + 1);
@@ -78,6 +79,7 @@ public final class VersionLibraryBuilder {
}
}
}
}
public void addArgument(String... args) {
for (String arg : args)