aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet/game
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-11 22:58:41 -0630
committermat <git@matdoes.dev>2025-06-11 22:58:41 -0630
commita2606569bb79867d07a075bcf7b05730e4264d72 (patch)
treefb97fb52aa0c4d7575f6bd5e4e36c2f01c87f942 /azalea-client/src/plugins/packet/game
parent89ddd5e85f4f2fb98697df15528df6e07a3ddd07 (diff)
downloadazalea-drasl-a2606569bb79867d07a075bcf7b05730e4264d72.tar.xz
use owned instead of borrowed Vec3 more
Diffstat (limited to 'azalea-client/src/plugins/packet/game')
-rw-r--r--azalea-client/src/plugins/packet/game/mod.rs4
1 files changed, 2 insertions, 2 deletions
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);
});
},
));