From ad33d06e5fa4498e9c37d88308e4077af94c9381 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 23 Feb 2024 10:15:45 -0600 Subject: reword comment for calculated_bits_per_entry --- azalea-world/src/palette.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azalea-world/src/palette.rs b/azalea-world/src/palette.rs index 278524ca..2b3cdc53 100755 --- a/azalea-world/src/palette.rs +++ b/azalea-world/src/palette.rs @@ -49,9 +49,9 @@ impl PalettedContainer { let size = container_type.size(); let data = Vec::::read_from(buf)?; - // if there's too much data that the bits per entry would be global, we have to - // figure out the bits per entry ourselves by checking the number of bits in the - // length of the data. + // we can only trust the bits per entry that we're sent if there's enough data + // that it'd be global. if it's not global, then we have to calculate it + // ourselves. // this almost never matters, except on some custom servers like hypixel limbo let calculated_bits_per_entry = math::ceil_log2(data.len() as u32) as u8; let calculated_bits_per_entry_palette_kind = -- cgit v1.2.3