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/plugins/packet/game/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins/packet') diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index b2a4abc4..e1477d21 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -428,7 +428,7 @@ impl GamePacketHandler<'_> { p.relative .apply(&p.change, &mut position, &mut direction, &mut physics); // old_pos is set to the current position when we're teleported - physics.set_old_pos(&position); + physics.set_old_pos(*position); // send the relevant packets commands.trigger(SendPacketEvent::new( @@ -828,7 +828,7 @@ impl GamePacketHandler<'_> { &mut physics, ); // old_pos is set to the current position when we're teleported - physics.set_old_pos(&old_position); + physics.set_old_pos(old_position); }); }, )); -- cgit v1.2.3