RegionIO/internal
Master290 9e91425c5d Write the section fluid count instead of a hardcoded zero
LevelChunkSection puts two shorts in front of every section: nonEmptyBlockCount
and fluidCount. We wrote the first and then a literal 0 for the second, under a
comment claiming it was a reserved field that vanilla always leaves at zero.
It is not reserved and vanilla does not.

So every client was told every section is fluid-free, in a world where the
aquifer now fills oceans, lakes and flooded caves. The golden test did not catch
it because its fixture is a superflat chunk whose real fluid count is zero.

The count is per block state, not per block: a waterlogged stair holds a fluid
while a dry one does not, and the flag for that comes from the block-state dump
added with the heightmaps.
2026-07-27 03:28:49 +03:00
..
nbt Initial commit: RegionIO Minecraft server core (26.1.2/protocol 775) 2026-06-24 00:32:51 +03:00
network Run the world clock so day and night happen 2026-07-27 02:45:28 +03:00
protocol Run the world clock so day and night happen 2026-07-27 02:45:28 +03:00
registry Implement multiplayer persistence and vanilla lighting 2026-07-21 09:21:44 +03:00
server Run the world clock so day and night happen 2026-07-27 02:45:28 +03:00
world Write the section fluid count instead of a hardcoded zero 2026-07-27 03:28:49 +03:00
worldgen Real badlands clay bands and a real biome temperature table 2026-07-27 02:31:10 +03:00