Skip to content

修复 Curse 整合包更新后未移除旧的模组#6185

Open
zkitefly wants to merge 2 commits into
HMCL-dev:mainfrom
zkitefly:fix-4315
Open

修复 Curse 整合包更新后未移除旧的模组#6185
zkitefly wants to merge 2 commits into
HMCL-dev:mainfrom
zkitefly:fix-4315

Conversation

@zkitefly

Copy link
Copy Markdown
Member

Fix #4315

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Glavo

Glavo commented Jun 16, 2026

Copy link
Copy Markdown
Member

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates CurseInstallTask.java to read the previous manifest from manifest.json if it exists, falling back to the configuration manifest. This ensures that resolved file names are used when removing old mods during an update, preventing issues where file names are missing in the raw CurseForge manifest. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Glavo Glavo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本审查建议由 GPT-5 生成


已将具体审查建议标注在对应代码行。

} catch (IOException | JsonParseException ignored) {
}
}
for (CurseManifestFile oldCurseManifestFile : oldFiles) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本审查建议由 GPT-5 生成


[P2] 这段删除逻辑会在 ModpackInstallTask 已经解包当前整合包 overrides 之后执行。如果新版整合包把某个旧 Curse manifest mod 改为放在 overrides/mods/<same fileName> 中,ModpackInstallTask 会先写入这个新版 override 文件,随后这里因为该旧 projectID/fileID 不在新版 manifest.files() 中而把同一路径删掉。结果是新版整合包明确包含的 override mod 在更新后丢失,仍可能导致缺 mod 或启动失败。修复时需要避免删除当前包 overrides 中已经提供的 mods/... 路径,或调整删除与解包顺序。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 更新整合包后未移除旧的模组

2 participants