diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-29 22:34:21 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-29 22:34:21 +0200 |
commit | f84e8054534972246e223bf20fac25204849dab6 (patch) | |
tree | a5aafb9715d5dd50c0a63d9b873c582531ca7545 /src/World.cpp | |
parent | Unused/duplicate function cleanup (diff) | |
download | cuberite-f84e8054534972246e223bf20fac25204849dab6.tar cuberite-f84e8054534972246e223bf20fac25204849dab6.tar.gz cuberite-f84e8054534972246e223bf20fac25204849dab6.tar.bz2 cuberite-f84e8054534972246e223bf20fac25204849dab6.tar.lz cuberite-f84e8054534972246e223bf20fac25204849dab6.tar.xz cuberite-f84e8054534972246e223bf20fac25204849dab6.tar.zst cuberite-f84e8054534972246e223bf20fac25204849dab6.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/World.cpp b/src/World.cpp index dfc612229..c934c3650 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1023,13 +1023,7 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La } for (auto & Entity : EntitiesToAdd) { - auto EntityPtr = Entity.get(); - ASSERT(EntityPtr->GetWorld() == this); m_ChunkMap->AddEntity(std::move(Entity)); - EntityPtr->OnAddToWorld(*this); - ASSERT(!EntityPtr->IsTicking()); - EntityPtr->SetIsTicking(true); - cPluginManager::Get()->CallHookSpawnedEntity(*this, *Entity); } EntitiesToAdd.clear(); |