Random-tick only sections holding randomly ticking states

The client random-ticked every section with a non-air block, drawing
getBlockRandomPos positions vanilla never draws. It now ticks a section only
when its palette holds a randomly ticking state, as
LevelChunkSection.isRandomlyTicking does (lava counts through LiquidBlock).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-10 20:02:40 +02:00
parent 58fe23d330
commit f58413cbbf
2 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -145,9 +145,9 @@ containers, weather-driven blocks. The library code lives in
- Features placed from block behaviour draw from a copy of the level
random. Their `next_world_*` draws and any draws in neighbour updates
during placement do not reach the real stream.
- Client sections that hold any non-air block get random ticks, not only
sections with randomly ticking states. This advances the
`getBlockRandomPos` generator more often than vanilla does.
- The client picks randomly ticking sections from their palettes, so a
section whose palette still lists a ticking state no block uses any more
gets random ticks that vanilla's exact counts would skip.
- **Explosion details.** Exposure uses full-collision blocks only.
`getEntities` order is approximate. Experience orbs, falling blocks and
arrows are not pushed.