From a2606569bb79867d07a075bcf7b05730e4264d72 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Jun 2025 22:58:41 -0630 Subject: use owned instead of borrowed Vec3 more --- azalea-client/src/entity_query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client/src/entity_query.rs') 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 -- cgit v1.2.3