Files
Pumpkin/crates/pumpkin-world/src/generation
MCbabel 69e3ff7c7c fix(world): size proto chunks by the dimension, not by the noise settings (#2803)
`ProtoChunk::new` took its height from the noise settings while
`Chunk::build_level_sections` builds and reads back `dimension.height / 16`
sections. The End and the Nether are the two dimensions taller than their noise
settings (256 vs 128), so their proto chunks held 8 sections for the 16 the
level chunk asks for and `get_block_state_raw` indexed past the end of
`flat_block_map`, panicking on every generation thread. The same mismatch left
light data covering half the column and dropped features placed above y = 128.

A chunk spans its dimension, as in vanilla's `LevelHeightAccessor`; the noise
settings only bound the vertical window the generator writes into. `ProtoChunk`
now carries both, storage sized by the dimension plus a generation window built
with `GenerationShapeConfig::trim_height`, so surface rules, carver height
providers and feature placement keep resolving against y < 128 there.

The panic quoted in the issue (`chunk_density_function.rs`, len 99 index 129)
was the same conflation in `populate_noise` and is already fixed by 3c43f971.
2026-08-07 10:10:00 +02:00
..
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 14:26:27 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00
2026-08-06 12:56:40 +02:00