From 5693191b57973136188bdade2144a69ac61a9f8a Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 27 Dec 2024 12:30:24 +0000 Subject: implement fluid_shape --- azalea-physics/src/collision/shape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-physics/src/collision/shape.rs') 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 } } } -- cgit v1.2.3