feat(protocol): ✨ added Minecraft 26.2 support - #1183
Open
caunt wants to merge 1 commit into
Open
Conversation
Registered protocol 776 and updated latest protocol packets so 26.2 clients receive the new login session UUID, Join Game online-mode flag, and team_color brigadier argument mapping.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added Minecraft 26.2 / protocol 776 support and updated affected latest-protocol login, join-game, and brigadier behavior.
Rationale
Velocity added 26.2 support in PaperMC/Velocity d7ad052. Void needs matching protocol awareness so 26.2 clients can complete login and parse latest command argument IDs.
The checked protocol page revision was Java Edition protocol/Packets oldid 3640366. That revision currently lists Join Game fields including "Sea level" followed by "Enforces Secure Chat"; the requested Velocity commit supplies the 26.2 delta by inserting the online-mode boolean between those fields.
Changes
ProtocolVersion.MINECRAFT_26_2as protocol 776.minecraft:coloris removed at 26.2 andminecraft:team_colortakes parser ID 16.Verification
dotnet test tests/Void.UnitTests/ -p:UseSharedCompilation=falsedotnet test tests/Void.UnitTests/ --no-restore -m:1dotnet build -m:1The plain
dotnet test tests/Void.UnitTests/command hit intermittentcscexit code 132 in different projects; disabling shared compilation or running single-node completed successfully.Performance
No measured performance impact. Changes are version-gated packet field reads/writes and static mapping additions.
Risks & Rollback
Risk is limited to latest protocol packet serialization and command argument mapping. Roll back by reverting this commit if 26.2 wire details change upstream.
Breaking/Migration
No user migration required.
Links