Skip to content

fix: support two-component Minecraft versions - #6621

Merged
Big-Iron-Cheems merged 1 commit into
MeteorDevelopment:masterfrom
Big-Iron-Cheems:fix/version-parsing
Aug 29, 2026
Merged

fix: support two-component Minecraft versions#6621
Big-Iron-Cheems merged 1 commit into
MeteorDevelopment:masterfrom
Big-Iron-Cheems:fix/version-parsing

Conversation

@Big-Iron-Cheems

Copy link
Copy Markdown
Collaborator

Type of change

  • Bug fix
  • New feature

Description

The version parsing logic was made overly restrictive by requiring exactly three numeric version components.

Minecraft release versions can contain either two or three components, such as 26.1, 26.2, and 26.2.1.
The stricter parsing caused valid two-component versions to be rejected and MeteorClient.VERSION to fall back to 0.0.0.

This change restores the previous build-version handling in MeteorClient while updating Version to correctly accept both two- and three-component versions.
A missing third component is represented internally as 0 for version comparisons, while the original version string is preserved.

Related issues

Closes #6620.

How Has This Been Tested?

Tested by building and running Meteor with a two-component Minecraft version (26.2) and verifying that the Meteor version is correctly reported instead of 0.0.0.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@Big-Iron-Cheems
Big-Iron-Cheems merged commit 01334e1 into MeteorDevelopment:master Aug 29, 2026
1 check passed
@Big-Iron-Cheems
Big-Iron-Cheems deleted the fix/version-parsing branch August 29, 2026 22:07
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.

HUD: incorrect meteor.version value for current MC version

1 participant