Fix #6627: 修复安装新实例时未正确写入 patches 的问题 (#6642)

This commit is contained in:
Glavo authored and GitHub committed 2026-08-10 21:17:58 +08:00
1 parent 0807c04572
commit 78b8d37891
1 file changed
+1 -1
@@ -95,7 +95,7 @@ public class MaintainTask extends Task<GameInstanceManifest> {
if (!manifest.isResolvedPreservingPatches())
throw new IllegalArgumentException("MaintainTask requires independent game version");
GameInstanceManifest newVersion = maintain(repository, manifest.resolve(repository));
return newVersion.patches() == null ? newVersion : newVersion.withPatches(manifest.getPatches());
return manifest.patches() == null ? newVersion : newVersion.withPatches(manifest.getPatches());
}
private static GameInstanceManifest maintainGameWithLaunchWrapper(GameRepository repository, GameInstanceManifest manifest, boolean reorderTweakClass) {