summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-21 23:07:38 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-21 23:07:38 +0200
commit6e681269d9dfb33b5b73f4f01a61def247b3aee7 (patch)
treed9409a8b0b00c439dcd5d2f7d4c1f2cf66592c18 /src/Entities/Player.cpp
parentMore suggestions (diff)
downloadcuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.tar
cuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.tar.gz
cuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.tar.bz2
cuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.tar.lz
cuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.tar.xz
cuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.tar.zst
cuberite-6e681269d9dfb33b5b73f4f01a61def247b3aee7.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index e975abdf5..b72f14f57 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1600,6 +1600,7 @@ bool cPlayer::MoveToWorld(const AString & a_WorldName, cWorld * a_World, bool a_
}
// Remove player from the old world
+ SetIsTravellingThroughPortal(true); // cChunk handles entity removal
m_World->RemovePlayer(this);
// Queue adding player to the new world, including all the necessary adjustments to the object