summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-09-03 23:25:35 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-09-03 23:25:35 +0200
commit5e670a050bb263ec66227e572eaf9fe0a95ccf1c (patch)
treefbe5e46923e7ccbb33a5857c8bc21787410ca0be /src/World.cpp
parentDefine _DEBUG macro for tests and main server (#4843) (diff)
downloadcuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.gz
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.bz2
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.lz
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.xz
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.zst
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index c934c3650..f5b64f297 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -3506,7 +3506,7 @@ void cWorld::AddQueuedPlayers(void)
// Add to chunkmap, if not already there (Spawn vs MoveToWorld):
auto PlayerPtr = Player.get();
- m_ChunkMap->AddEntityIfNotPresent(std::move(Player));
+ m_ChunkMap->AddPlayer(std::move(Player));
PlayerPtr->OnAddToWorld(*this);
ASSERT(!PlayerPtr->IsTicking());
PlayerPtr->SetIsTicking(true);