Skip to content

Update the scope of library support#6513

Open
neveler wants to merge 1 commit into
HMCL-dev:mainfrom
neveler:patch-1
Open

Update the scope of library support#6513
neveler wants to merge 1 commit into
HMCL-dev:mainfrom
neveler:patch-1

Conversation

@neveler

@neveler neveler commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the 1+ label Jul 26, 2026
@neveler

neveler commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

除了直接写死,也可以考虑预加载加载器列表,并隐藏没有与当前游戏版本匹配的加载器。

@Glavo

Glavo commented Jul 26, 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: a74b4bf186

ℹ️ 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".

} else if (GameVersionNumber.compare(gameVersion, "1.2.5") <= 0) {
this.libraries = new InstallerItem[]{game};
} else if (GameVersionNumber.compare(gameVersion, "1.5.1") <= 0) {
this.libraries = new InstallerItem[]{game, legacyfabric, legacyfabricApi};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve installed loaders when filtering old versions

When loading an existing 1.3–1.5.1 instance that already contains Forge, this branch omits that loader from getLibraries(). InstallerListPage.loadInstance() renders recognized loaders only from this array, while its analyzer fallback explicitly skips every ID recognized by LibraryType.fromPatchId, so the installed Forge entry disappears and the user can no longer update or remove it through this page. Restrict the filtering to installation choices or separately retain recognized loaders that are already installed.

Useful? React with 👍 / 👎.

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.

2 participants