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 resizing a singleton palette #681

Merged
merged 1 commit into from
Jan 5, 2022
Merged

Conversation

MWHunter
Copy link
Contributor

@MWHunter MWHunter commented Jan 5, 2022

The current method accomplishes nothing because everything is already set to 0 in the data array. I've replaced it with a method that sets the ID of 0 to point to whatever the singleton palette was pointing at before.

Implemented and tested with the nearly identical system PacketEvents 2.0 to be working - as I've copied and pasted over many of these classes.

Without this fix, the first block that is set in this resized singleton palette becomes the identity of every single block in that chunk section - which is quite bad.

@Redned235
Copy link
Member

Thanks for the contribution!

@Redned235 Redned235 merged commit 25b0e55 into GeyserMC:master Jan 5, 2022
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