aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/iterators.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-03-08 16:35:12 +0000
committermat <github@matdoes.dev>2023-03-08 16:35:12 +0000
commit5ce830ae6ce12982cdfa578673374de7444abf3f (patch)
treea174597ff78a6391cf8821f82f581cb0e0cbd100 /azalea-world/src/iterators.rs
parent5dd35c7ed82c38ef36ca28f630e8d05c5db2cbea (diff)
downloadazalea-drasl-5ce830ae6ce12982cdfa578673374de7444abf3f.tar.xz
merge main
Diffstat (limited to 'azalea-world/src/iterators.rs')
-rw-r--r--azalea-world/src/iterators.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-world/src/iterators.rs b/azalea-world/src/iterators.rs
index 53a94898..4054bfe0 100644
--- a/azalea-world/src/iterators.rs
+++ b/azalea-world/src/iterators.rs
@@ -73,7 +73,7 @@ impl Iterator for BlockIterator {
let x = self.pos.x * self.right;
let y = self.pos.y * ((self.apothem as i32) - self.left);
let z = self.pos.z * ((self.apothem as i32) - (i32::abs(x) + i32::abs(y)));
- Some(BlockPos { x: x, y, z } + self.start)
+ Some(BlockPos { x, y, z } + self.start)
}
}