We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858bec2 commit 6020a22Copy full SHA for 6020a22
azalea-world/src/palette.rs
@@ -55,6 +55,9 @@ impl PalettedContainer {
55
// that it'd be global. if it's not global, then we have to calculate it
56
// ourselves.
57
// this almost never matters, except on some custom servers like hypixel limbo
58
+ // TODO: this is incorrect. we should be getting the log2 of the max blockstate
59
+ // or biome instead of data.len(). this code might be causing wrong data to be
60
+ // read. ¯\_(ツ)_/¯
61
let calculated_bits_per_entry = math::ceil_log2(data.len() as u32) as u8;
62
let calculated_bits_per_entry_palette_kind =
63
PaletteKind::from_bits_and_type(calculated_bits_per_entry, container_type);
0 commit comments