diff options
| author | mat <git@matdoes.dev> | 2024-12-27 12:30:24 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-27 12:35:25 +0000 |
| commit | 5693191b57973136188bdade2144a69ac61a9f8a (patch) | |
| tree | d60611362019bc4134404ff62104743884efe4e2 /azalea-physics/src/collision/shape.rs | |
| parent | 04036b6e4afe1e3eb59cd861a871e17ea5680f5f (diff) | |
| download | azalea-drasl-5693191b57973136188bdade2144a69ac61a9f8a.tar.xz | |
implement fluid_shape
Diffstat (limited to 'azalea-physics/src/collision/shape.rs')
| -rwxr-xr-x | azalea-physics/src/collision/shape.rs | 2 |
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 } } } |
