aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/chunk_storage.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-22 23:01:54 +0000
committermat <git@matdoes.dev>2025-02-22 23:01:54 +0000
commit34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 (patch)
tree7920fec1203e8e96463a142f5f6da6164e76e684 /azalea-world/src/chunk_storage.rs
parentbdd2fc91e11e2896d8e1c7046df247e1075bd40d (diff)
downloadazalea-drasl-34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6.tar.xz
update to rust edition 2024
Diffstat (limited to 'azalea-world/src/chunk_storage.rs')
-rwxr-xr-xazalea-world/src/chunk_storage.rs40
1 files changed, 25 insertions, 15 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs
index 8362385a..9852dd1a 100755
--- a/azalea-world/src/chunk_storage.rs
+++ b/azalea-world/src/chunk_storage.rs
@@ -556,21 +556,31 @@ mod tests {
Some(Chunk::default()),
&mut chunk_storage,
);
- assert!(chunk_storage
- .get_block_state(&BlockPos { x: 0, y: 319, z: 0 })
- .is_some());
- assert!(chunk_storage
- .get_block_state(&BlockPos { x: 0, y: 320, z: 0 })
- .is_none());
- assert!(chunk_storage
- .get_block_state(&BlockPos { x: 0, y: 338, z: 0 })
- .is_none());
- assert!(chunk_storage
- .get_block_state(&BlockPos { x: 0, y: -64, z: 0 })
- .is_some());
- assert!(chunk_storage
- .get_block_state(&BlockPos { x: 0, y: -65, z: 0 })
- .is_none());
+ assert!(
+ chunk_storage
+ .get_block_state(&BlockPos { x: 0, y: 319, z: 0 })
+ .is_some()
+ );
+ assert!(
+ chunk_storage
+ .get_block_state(&BlockPos { x: 0, y: 320, z: 0 })
+ .is_none()
+ );
+ assert!(
+ chunk_storage
+ .get_block_state(&BlockPos { x: 0, y: 338, z: 0 })
+ .is_none()
+ );
+ assert!(
+ chunk_storage
+ .get_block_state(&BlockPos { x: 0, y: -64, z: 0 })
+ .is_some()
+ );
+ assert!(
+ chunk_storage
+ .get_block_state(&BlockPos { x: 0, y: -65, z: 0 })
+ .is_none()
+ );
}
#[test]