Skip to content

在修改游戏版本时清除已选的模组加载器#6475

Open
CiiLu wants to merge 1 commit into
HMCL-dev:mainfrom
CiiLu:s
Open

在修改游戏版本时清除已选的模组加载器#6475
CiiLu wants to merge 1 commit into
HMCL-dev:mainfrom
CiiLu:s

Conversation

@CiiLu

@CiiLu CiiLu commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@github-actions github-actions Bot added the 10+ label Jul 22, 2026
@Glavo

Glavo commented Jul 22, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b42213d188

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +81 to +82
if (controller.getSettings().containsKey(libraryId)) {
library.versionProperty().set(new InstallerItem.InstalledState(getVersion(libraryId), false, false));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Queue removal of existing loaders when changing game version

When a user updates a modded instance to a different Minecraft version and leaves its old Forge/Fabric/etc. card unselected, this branch only renders that card as absent; it does not add a RemoveVersionAction. UpdateInstallerWizardProvider.finish will consequently process only the new game selection, leaving the old loader patch in the saved version. The prior compatibility guard prevented completing this incompatible combination, whereas this now permits an installation that retains a loader built for the previous game version.

Useful? React with 👍 / 👎.

@Minecraft269

Copy link
Copy Markdown

感觉不如 #6455 (comment) 方案

在此PR之前 用户在更新了游戏本体后 加载器会明显提示不兼容 而此PR直接清除已有的加载器那么会导致提示不明显(直接没有提示 可以直接进行安装(而这往往会导致忽略了更新加载器这一操作) 而原来是如果没更新加载器就不允许安装) 进游戏后用户会发现啥有没有 在回到启动器查看 这很不健康 (需要把用户当傻子 (bushi )

或者就是在添加个明显的提示 提醒用户更新游戏本体的操作会同步清除安装的加载器 使用户及时发现进行加载器的更新 而不是进入到游戏发现没模组 没模组加载器在退出来回到HMCL添加

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants