diff options
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/chunk_storage.rs | 3 |
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 = §ions[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)) } |
