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

Handle duplicate palette entries #4157

Conversation

ZacSharp
Copy link
Collaborator

Stop using IdMapper because it can't map two ids to the same block. This should never happen but apparently Minecraft doesn't care about Mojang fixing bugs.
I also made GlobalPalette a special case because not using IdMapper anymore means we'd have to copy the entire registry in order to avoid the special case and there is a huge speed difference between scanning all blockstate ids for a handful of states vs. looking up the ids of those states in a hash map.

Should fix #3917

@leijurv leijurv merged commit e19fd11 into cabaletta:1.19.4 Oct 31, 2023
4 checks passed
@ZacSharp ZacSharp mentioned this pull request Nov 10, 2023
4 tasks
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.

ArrayIndexOutOfBoundsException in FasterWorldScanner
2 participants