Fix #4861 : 复制游戏实例相关问题 (#5111)

This commit is contained in:
辞庐
2026-01-02 15:23:32 +08:00
committed by GitHub
parent bc55da0720
commit 05d37e3911

View File

@@ -174,7 +174,7 @@ public final class HMCLGameRepository extends DefaultGameRepository {
}
Files.copy(fromJson, toJson);
JsonUtils.writeToJsonFile(toJson, fromVersion.setId(dstId));
JsonUtils.writeToJsonFile(toJson, fromVersion.setId(dstId).setJar(dstId));
VersionSetting oldVersionSetting = getVersionSetting(srcId).clone();
GameDirectoryType originalGameDirType = oldVersionSetting.getGameDirType();