aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-02 20:59:51 -0500
committermat <git@matdoes.dev>2023-10-02 20:59:51 -0500
commit0691373310676768ef5268daef0e03b583c2cbe9 (patch)
treec8c3de4fb80dc07aee1555f993f537030f1be813 /azalea-world/src
parent985327241d341caf2ce357955cb46657cfa303cb (diff)
downloadazalea-drasl-0691373310676768ef5268daef0e03b583c2cbe9.tar.xz
cleanup
Diffstat (limited to 'azalea-world/src')
-rwxr-xr-xazalea-world/src/chunk_storage.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs
index acf0cf22..e7ff40c5 100755
--- a/azalea-world/src/chunk_storage.rs
+++ b/azalea-world/src/chunk_storage.rs
@@ -315,6 +315,7 @@ impl Chunk {
/// Get the block state at the given position from a list of sections. Returns
/// `None` if the position is out of bounds.
+#[inline]
pub fn get_block_state_from_sections(
sections: &[Section],
pos: &ChunkBlockPos,
@@ -329,7 +330,6 @@ pub fn get_block_state_from_sections(
// y position is out of bounds
return None;
};
- // TODO: make sure the section exists
let section = &sections[section_index];
let chunk_section_pos = ChunkSectionBlockPos::from(pos);
Some(section.get(chunk_section_pos))