diff options
Diffstat (limited to 'azalea-client/src/plugins/packet')
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 4 |
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); }); }, )); |
