diff options
| author | mat <git@matdoes.dev> | 2023-10-11 00:02:12 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-11 00:02:12 -0500 |
| commit | 19881c4612fe8372d8ddffa72c33b4339704f3b6 (patch) | |
| tree | fdb8fd1bd66f44759f72e966df93abd8d9be8726 /azalea-core/src | |
| parent | 9a687f0ffebad80441e036aabe14e7cf80c774d3 (diff) | |
| download | azalea-drasl-19881c4612fe8372d8ddffa72c33b4339704f3b6.tar.xz | |
fix State incorrectly being reused when calling handlers in swarm
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/position.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
