Rewrite "no face" in digging packet to a valid 1.8 value#673
Merged
florianreuth merged 1 commit intoViaVersion:masterfrom Apr 22, 2026
Merged
Rewrite "no face" in digging packet to a valid 1.8 value#673florianreuth merged 1 commit intoViaVersion:masterfrom
florianreuth merged 1 commit intoViaVersion:masterfrom
Conversation
Member
|
Or well, you should check for == 255 then instead of > 0, no? |
Contributor
Author
Thought it was safer to just completely rewrite everything above > 5 as MC 1.8.9 only really knows 0-5. The mc server itself does a mod operator on reading the enum which prevented crashes on normal spigot servers (as it wrapped around to a valid enumfacing) but on minestom this probably doesn't exist which caused the crash of that pr. |
florianreuth
approved these changes
Apr 22, 2026
Contributor
Author
|
(Another technical note for anyone reading: 1.7.10 uses -1 as "no face" too but since the byte is read as an unsigned byte this goes back to 255) |
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.
A correct fix for the issue that was being experienced in #629

This pr ensures the facing value is never an invalid value and always in the range 1.8 servers accept (0-5)
MC 1.7.10: (uses 255)

MC 1.8.9: (uses EnumFacing.DOWN equivalent with 0)
