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

Fix bits overflowing when using global palette with bit storage #632

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

booky10
Copy link
Collaborator

@booky10 booky10 commented Dec 21, 2023

This fixes an issue present with newer versions. The global palette index is 1:1 the blockstate id, so new blocks overflow in the BitStorage (because of the bits-limit set for the GlobalPalette) and become other wrong blocks.
I've also added a check to make sure this issue is more obvious when this limit is reached again.

@retrooper retrooper merged commit c15b88e into retrooper:2.0 Dec 21, 2023
1 check passed
@booky10 booky10 deleted the fix/bits-overflow-global-palette branch December 21, 2023 17:53
@booky10 booky10 restored the fix/bits-overflow-global-palette branch May 5, 2024 17:00
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