From 19881c4612fe8372d8ddffa72c33b4339704f3b6 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Oct 2023 00:02:12 -0500 Subject: fix State incorrectly being reused when calling handlers in swarm --- azalea-core/src/position.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-core/src') diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs index e61756b0..cc99b684 100755 --- a/azalea-core/src/position.rs +++ b/azalea-core/src/position.rs @@ -168,7 +168,7 @@ impl Vec3 { f64::sqrt(self.x * self.x + self.y * self.y + self.z * self.z) } - /// Get the squared distance from this position to another position. + /// Get the distance from this position to another position. /// Equivalent to `(self - other).length()`. pub fn distance_to(&self, other: &Self) -> f64 { (self - other).length() -- cgit v1.2.3