diff options
Diffstat (limited to 'azalea-client/src/entity_query.rs')
| -rw-r--r-- | azalea-client/src/entity_query.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-client/src/entity_query.rs b/azalea-client/src/entity_query.rs index 5b19bb24..ee99d0f4 100644 --- a/azalea-client/src/entity_query.rs +++ b/azalea-client/src/entity_query.rs @@ -162,7 +162,7 @@ where entities.sort_by_cached_key(|(_, position)| { // to_bits is fine here as long as the number is positive - position.distance_squared_to(&nearest_to).to_bits() + position.distance_squared_to(nearest_to).to_bits() }); entities |
