aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-world/src')
-rw-r--r--azalea-world/src/chunk_storage.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs
index 0ad96c81..e170dc83 100644
--- a/azalea-world/src/chunk_storage.rs
+++ b/azalea-world/src/chunk_storage.rs
@@ -457,6 +457,9 @@ pub fn get_block_state_from_sections(
return None;
};
let section = &sections[section_index];
+ if section.block_count == 0 {
+ return Some(BlockState::AIR);
+ }
let chunk_section_pos = ChunkSectionBlockPos::from(pos);
Some(section.get_block_state(chunk_section_pos))
}