Mantle stages see the terrain at least 16 blocks around their chunk, as chunk stages do

This commit is contained in:
piexel committed 2026-10-10 18:13:46 +02:00
1 parent ceac26bd18
commit 40cb759271
4 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ graph.define(APPLY).run(CaveModule::apply); // reads its own chunk's CAVES and
A chunk stage writes only its own chunk but may look around it: `ctx.terrain()` covers the chunk and the 16 blocks
around it, gives the dimension's `fluidHeight()` and, per column, `upperDimensionY(x, z)` where a dimension stacked above
begins (write nothing there). `surfaceY(x, z)` is a column's height alone, cheaper than `column(x, z)` when a stage needs
no slope. `ctx.mantle().blocks()` holds the blocks placements wrote into the mantle for the chunks to
no slope. A mantle stage's `ctx.terrain()` covers the chunk and the larger of its reach and 16 blocks around it. `ctx.mantle().blocks()` holds the blocks placements wrote into the mantle for the chunks to
take over, such as objects and structures; a chunk stage copies them in (Iris's `iris:matter`). Stages only read them.
```java