summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-10 18:25:53 +0200
committermadmaxoft <github@xoft.cz>2014-06-10 18:25:53 +0200
commit366ecf9dfd38d612c0685f3fbf8b3a95b9900697 (patch)
tree707394377759c40768cb2ac609c082d9d5cadce1 /src/World.cpp
parentFixed gcc compilation. (diff)
downloadcuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.gz
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.bz2
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.lz
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.xz
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.tar.zst
cuberite-366ecf9dfd38d612c0685f3fbf8b3a95b9900697.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/World.cpp b/src/World.cpp
index ebe6b53e6..6bcd1391a 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -3148,10 +3148,7 @@ void cWorld::AddQueuedPlayers(void)
(*itr)->SetWorld(this);
// Add to chunkmap, if not already there (Spawn vs MoveToWorld):
- if (!m_ChunkMap->HasEntity((*itr)->GetUniqueID()))
- {
- m_ChunkMap->AddEntity(*itr);
- }
+ m_ChunkMap->AddEntityIfNotPresent(*itr);
} // for itr - PlayersToAdd[]
} // Lock(m_CSPlayers)