Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriTimoz committed Nov 17, 2023
1 parent da6f6bb commit 5258bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft-server/src/world/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5258bfd

Please sign in to comment.