From 827d943c3f27c65724ff83689b40c87d1cd1838c Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 4 Aug 2025 16:17:41 -0900 Subject: fix wrong float rounding in get_friction_influenced_speed --- azalea-client/src/plugins/movement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client/src/plugins') 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 { -- cgit v1.2.3