Skip to content

Fix #6320: 修复安装新实例时,Fabric API 安装路径未遵循版本隔离策略的问题#6355

Open
Glavo wants to merge 4 commits into
HMCL-dev:mainfrom
Glavo:fix-6320
Open

Fix #6320: 修复安装新实例时,Fabric API 安装路径未遵循版本隔离策略的问题#6355
Glavo wants to merge 4 commits into
HMCL-dev:mainfrom
Glavo:fix-6320

Conversation

@Glavo

@Glavo Glavo commented Jul 9, 2026

Copy link
Copy Markdown
Member

No description provided.

@Glavo

Glavo commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

@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: 5dd591cd59

ℹ️ 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 +96 to +97
&& value.isModLoader()
&& get(value.getPatchId()) instanceof RemoteVersion) {

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 isolation for OptiFine-only installs

When the user installs only OptiFine with the default isolation mode set to MODDED, OPTIFINE.isModLoader() is false, so this method returns false and applyDefaultIsolationSettingForNewInstance skips creating the per-instance running directory. The previous post-install check used LibraryAnalyzer.isModded(...), which treats OptiFine's LaunchWrapper main class as modded, so OptiFine-only installations now regress to sharing the base .minecraft directory.

Useful? React with 👍 / 👎.

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.

1 participant