Skip to content

fix: 实例列表中新快照图标错误 - #6774

Merged
Glavo merged 2 commits into
HMCL-dev:mainfrom
CiiLu:master
Aug 31, 2026
Merged

fix: 实例列表中新快照图标错误#6774
Glavo merged 2 commits into
HMCL-dev:mainfrom
CiiLu:master

Conversation

@CiiLu

@CiiLu CiiLu commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the 1+ label Aug 29, 2026
@Glavo

Glavo commented Aug 31, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T13:17:21.036941Z d09db6a Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: d09db6a584

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

if (version.isAprilFools())
return GameInstanceIconType.APRIL_FOOLS.getIcon();
else if (version instanceof GameVersionNumber.LegacySnapshot)
else if (version instanceof GameVersionNumber.LegacySnapshot || version instanceof GameVersionNumber.Release release && release.getEaType() != GameVersionNumber.Release.ReleaseType.GA)

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 Exclude unknown versions from the snapshot branch

When version detection returns no result or cannot resolve the primary JAR, DefaultGameInstance.detectVersion() returns GameVersionNumber.unknown(), which is the Release.ZERO instance with ReleaseType.UNKNOWN. Because UNKNOWN != GA, this condition now classifies such instances as snapshots and displays the command-block icon instead of the previous grass fallback. Restrict this branch to the actual early-access release types, or explicitly exclude GameVersionNumber.unknown().

Useful? React with 👍 / 👎.

@Glavo
Glavo merged commit 8629a2b into HMCL-dev:main Aug 31, 2026
3 checks passed
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