diff options
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 } } } |
