prismarine-chunk
prismarine-chunk copied to clipboard
PaletteStorage.incrementPalette can go out of bounds
https://github.com/PrismarineJS/prismarine-chunk/blob/0f4ec64bd0ef8a84f04d825358dd1443e4310aa6/src/bedrock/common/PalettedStorage.js#L95-L102
If you have bitsPerBlock size that causes rounding on the wordCount, this double for loop will go beyond the 4096 block range and throw and error.
Please open PR if you have a fix.