-
-
Notifications
You must be signed in to change notification settings - Fork 201
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 DataPalette index & deprecate unused globalPaletteBits #775
Conversation
But I can try if it works in a few hours |
These are equivalent as sizeBits is effectively maxBitsPerEntry minus minBitsPerEntry, so the position of the encoded bytes is the same. For example, a chunk section is With the code in this PR, we would do:
With the code from the Minecraft jar we would do:
|
Also since you're working in this area feel free to remove globalPaletteBits per #676 |
Do you want me to make breaking API changes, or should I keep the existing static createEmpty, createForChunk, createForBiome methods and deprecate them? |
Yes it should have a deprecation notice and for now just redirect to the new method |
And as for the @AllArgsConstructor ? Should I manually recreate a deprecated constructor with globalPaletteBits to not cause any breaking changes as well? |
Correct. Basically the goal is just that we can easily remove it in the next breaking version. |
Done. Shouldn't involve any breaking changes now |
Thank you! |
This PR attempts to fix #774
From my basic testing, the block palettes still work as they did before without any issues and biome palettes do not throw any errors anymore. They also seem correct in game, but don't quote me on that. (Since my test world is very small with not that many different biomes (2 to be exact))