mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
BlockPalette::liquid_block_count() returned the inverse of what it should: the Homogeneous arm returned 0 when the section was liquid and the full VOLUME (4096) when it was not, and the Heterogeneous arm summed the counts of non-liquid blocks (filtering on !is_liquid). Flip both arms to actually count liquid blocks, mirroring the correct sibling non_air_block_count(): Homogeneous yields VOLUME when the single block is liquid (0 otherwise) and Heterogeneous filters on is_liquid. This value is sent to clients as the fluid count in chunk data (MC 26.1+), so the inversion reported wrong fluid counts to players.