aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/collision/shape.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-27 12:30:24 +0000
committermat <git@matdoes.dev>2024-12-27 12:35:25 +0000
commit5693191b57973136188bdade2144a69ac61a9f8a (patch)
treed60611362019bc4134404ff62104743884efe4e2 /azalea-physics/src/collision/shape.rs
parent04036b6e4afe1e3eb59cd861a871e17ea5680f5f (diff)
downloadazalea-drasl-5693191b57973136188bdade2144a69ac61a9f8a.tar.xz
implement fluid_shape
Diffstat (limited to 'azalea-physics/src/collision/shape.rs')
-rwxr-xr-xazalea-physics/src/collision/shape.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-physics/src/collision/shape.rs b/azalea-physics/src/collision/shape.rs
index e7ac9c2e..fb733cae 100755
--- a/azalea-physics/src/collision/shape.rs
+++ b/azalea-physics/src/collision/shape.rs
@@ -413,7 +413,7 @@ impl VoxelShape {
VoxelShape::Cube(s) => s.find_index(axis, coord),
_ => {
let upper_limit = (self.shape().size(axis) + 1) as i32;
- binary_search(0, upper_limit, &|t| coord < self.get(axis, t as usize)) - 1
+ binary_search(0, upper_limit, |t| coord < self.get(axis, t as usize)) - 1
}
}
}