From 5258bfd6f426f62927fc6a899b2e3089b9bbd6d9 Mon Sep 17 00:00:00 2001 From: Dimitri Date: Fri, 17 Nov 2023 13:46:27 +0100 Subject: [PATCH] fix warning --- minecraft-server/src/world/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft-server/src/world/map.rs b/minecraft-server/src/world/map.rs index 1f39dc4c..687769bf 100644 --- a/minecraft-server/src/world/map.rs +++ b/minecraft-server/src/world/map.rs @@ -274,7 +274,7 @@ impl WorldMap { pub async fn try_move(&self, object: &CollisionShape, movement: &Translation) -> Translation { // TODO(perf): Optimize Map.try_move by preventing block double-checking // Also lock the map only once - let movement_fragments = movement.clone().fragment(&object); + let movement_fragments = movement.clone().fragment(object); let mut validated = Translation{ x: 0.0, y: 0.0, z: 0.0 }; for fragment in movement_fragments { let validating = validated.clone() + fragment;