diff options
| author | mat <git@matdoes.dev> | 2026-01-19 15:05:44 +0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-19 13:28:15 +0400 |
| commit | 6f82263de58c6f33cca8cc36276b5e478801b352 (patch) | |
| tree | 6230d62ce601efa2ae31f9fb363e8d756d787d4d /azalea-world/src | |
| parent | 70bd9c94dd7ca68777a0ead5f9432812e535bee3 (diff) | |
| download | azalea-drasl-6f82263de58c6f33cca8cc36276b5e478801b352.tar.xz | |
minor physics optimizations
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)) } |
