Skip to content

fix: 可通过本地安装 同时安装 Cleanroom 与 Forge - #6496

Open
CiiLu wants to merge 3 commits into
HMCL-dev:mainfrom
CiiLu:CLEANROOM!!!!!!!!!!!!!
Open

fix: 可通过本地安装 同时安装 Cleanroom 与 Forge#6496
CiiLu wants to merge 3 commits into
HMCL-dev:mainfrom
CiiLu:CLEANROOM!!!!!!!!!!!!!

Conversation

@CiiLu

@CiiLu CiiLu commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

Glavo commented Jul 25, 2026

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@Glavo

Glavo commented Jul 25, 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: 3de5fa8ecd

ℹ️ 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 +130 to +131
if (analyzer.has(LibraryAnalyzer.LibraryType.FORGE)) {
throw new UnsupportedInstallationException(CLEANROOM_NOT_COMPATIBLE_WITH_FORGE);

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 Identify Cleanroom before rejecting Forge instances

When the target instance already contains Forge, DefaultDependencyManager.installLibraryAsync(Version, Path) calls this Cleanroom detector first and only catches IOException. This check therefore throws before inspecting the selected file, so any local installer—including a supported Forge-compatible OptiFine installer—aborts with the Cleanroom conflict message instead of reaching the OptiFine detector. Perform the compatibility check only after install_profile.json has confirmed that the file is actually a Cleanroom installer.

Useful? React with 👍 / 👎.

CiiLu added 2 commits July 30, 2026 21:50
# Conflicts:
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/cleanroom/CleanroomInstallTask.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/download/forge/ForgeInstallTask.java
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