diff options
| author | mat <git@matdoes.dev> | 2025-08-04 16:17:41 -0900 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-04 19:33:00 -0545 |
| commit | 827d943c3f27c65724ff83689b40c87d1cd1838c (patch) | |
| tree | 52d0145a8d482e912ceccb076accddce4da75c5e /azalea-client/src/plugins | |
| parent | 013cd9f17674a4939d885ef91b7058b5a59d9ae1 (diff) | |
| download | azalea-drasl-827d943c3f27c65724ff83689b40c87d1cd1838c.tar.xz | |
fix wrong float rounding in get_friction_influenced_speed
Diffstat (limited to 'azalea-client/src/plugins')
| -rw-r--r-- | azalea-client/src/plugins/movement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-client/src/plugins/movement.rs b/azalea-client/src/plugins/movement.rs index e4778be1..aeb946fa 100644 --- a/azalea-client/src/plugins/movement.rs +++ b/azalea-client/src/plugins/movement.rs @@ -423,7 +423,7 @@ fn distance_to_unit_square(v: Vec2) -> f32 { let x = v.x.abs(); let y = v.y.abs(); let ratio = if y > x { x / y } else { y / x }; - (1.0 + ratio * ratio).sqrt() + (1. + ratio * ratio).sqrt() } impl Client { |
