Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
suprohub committed Oct 28, 2024
1 parent 90f71ff commit 7595f8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pumpkin-world/src/chunk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ impl ChunkBlocks {
self.blocks.len()
}

pub const fn is_empty(&self) -> bool {
self.blocks.is_empty()
}

pub const fn subchunks_len(&self) -> usize {
self.blocks.len().div_ceil(SUBCHUNK_VOLUME)
}
Expand Down

0 comments on commit 7595f8d

Please sign in to comment.