Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pc1.18+: Fix world height defaults and light masks #267

Merged
merged 3 commits into from
Jan 4, 2025
Merged

Conversation

extremeheat
Copy link
Member

The world height changed in 1.18+ to be between -64 and +320. The value set to the ChunkColumn have to be aligned with the dimension codec or the game will sometimes crash the game and otherwise cause chunks to be misplaced, eg:

image

Since we don't have a way to store this data inside prismarine-registry yet I just fix by changing the defaults to be correct 1.18 defaults

Also fix for light masks

The world height changed in 1.18+ to be between -64 and +320. The value set to the ChunkColumn have to be aligned with the dimension codec or the game will sometimes crash the game and otherwise cause chunks to be misplaced.

Since we don't have a way to store this data inside prismarine-registry yet I just fix by changing the defaults to be correct.

Also fix for light masks
@rom1504
Copy link
Member

rom1504 commented Jan 4, 2025

would be nice to have a regression test for this kind of stuff

@rom1504 rom1504 merged commit 92ae1d3 into master Jan 4, 2025
3 checks passed
@rom1504
Copy link
Member

rom1504 commented Jan 4, 2025

/makerelease

@rom1504bot rom1504bot mentioned this pull request Jan 4, 2025
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.

2 participants