diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-04-11 09:39:24 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-04-11 09:39:24 +0200 |
commit | 4bf160d596d8b9d0bfb3904470560b492453e5e4 (patch) | |
tree | a1a47c413cefc21279361121000e47c16a3c6c5b /src/Entities/Player.cpp | |
parent | Smelting Gives Experience (#4094) (diff) | |
download | cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.gz cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.bz2 cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.lz cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.xz cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.tar.zst cuberite-4bf160d596d8b9d0bfb3904470560b492453e5e4.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index b4bf95f5b..a58d45fb0 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1607,7 +1607,7 @@ void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ) // ask plugins to allow teleport to the new position. if (!cRoot::Get()->GetPluginManager()->CallHookEntityTeleport(*this, m_LastPosition, Vector3d(a_PosX, a_PosY, a_PosZ))) { - SetPosition(a_PosX, a_PosY, a_PosZ); + ResetPosition({a_PosX, a_PosY, a_PosZ}); FreezeInternal(GetPosition(), false); m_LastGroundHeight = a_PosY; m_bIsTeleporting = true; @@ -1996,7 +1996,7 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn, Vector3d VERIFY(!GetWorld()->RemovePlayer(*this, false)); // Set position to the new position - SetPosition(a_NewPosition); + ResetPosition(a_NewPosition); FreezeInternal(a_NewPosition, false); // Stop all mobs from targeting this player |