Repository navigation
generate block shapes for every supported version - #780
Merged
Merged
Conversation
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.
type of change
summary
fixes the collision items from #776 (light blocks, glass panes, open doors, mud, trapdoors, fences and gates, lightning rods) on every version other than 26.2, and lets pomme join servers older than 1.21.2 again.
state-26.2.jsonhad collision and outline shapes, so every other version fell back to full cubes for almost every block. the other 12 tables are now regenerated withjust stategenfrom each version's own server jar, and the hand-written fallback shapes are removed: a table without shapes now fails to load instead of silently colliding wrong.particleStatustoclient_information, and nothing stripped it for older servers, which kicked pomme right after login ("found 1 bytes extra"). it's now stripped in both the configuration and game phase for 1.21.1 and older.reference
net/minecraft/server/level/ClientInformation.java(1.21.1 vs 1.21.3),tools/stategen/StateDump.javatesting
just ingame-test34/34, including the newblocks/collision_shapesscript: it lands the player on or past each reported block and checks the height. it also passes through the harness against 26.3, 1.21.11 and 1.20.1 servers, where master fails it (or, on 1.20.1, can't join). new byte-layout test for theclient_informationstrip. 1.21.1 now joins, but a teleport there gets rubber-banded by the server, which is a separate translation issue.