world/chunk: add block light to section iterator items

This commit is contained in:
Matthias Schiffer 2023-03-04 17:32:58 +01:00
parent 482471492c
commit 51602d5fc1
2 changed files with 23 additions and 5 deletions

View file

@ -100,6 +100,7 @@ pub fn top_layer(chunk: &Chunk) -> Result<Box<BlockInfoArray>> {
for SectionIterItem {
y: section_y,
section,
block_light: _,
} in chunk.sections().rev()
{
for y in BlockY::iter().rev() {