Skip to content

Commit 0d47080

Browse files
Update src/client/terrain/util/chunk.rs
1 parent 0725339 commit 0d47080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/terrain/util/chunk.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ impl Chunk {
4040

4141
#[rustfmt::skip]
4242
pub fn index(x: usize, y: usize, z: usize) -> usize {
43-
if (x >= PADDED_CHUNK_SIZE) || (y >= PADDED_CHUNK_SIZE) || (z >= PADDED_CHUNK_SIZE) {
44-
panic!("Index out of bounds: ({}, {}, {})", x, y, z);
45-
}
43+
if (x >= PADDED_CHUNK_SIZE) || (y >= PADDED_CHUNK_SIZE) || (z >= PADDED_CHUNK_SIZE) {
44+
panic!("Index out of bounds: ({}, {}, {})", x, y, z);
45+
}
4646
x + PADDED_CHUNK_USIZE * (y + PADDED_CHUNK_USIZE * z)
4747
}
4848

0 commit comments

Comments
 (0)