1
0

Don't set entity world twice (#4606)

* Don't set entity world twice

* Call HookSpawnedEntity when the entity actually spawned
This commit is contained in:
Mat
2020-04-09 23:26:06 +03:00
committed by GitHub
parent bdedab15c9
commit d966a12624
2 changed files with 1 additions and 4 deletions

View File

@@ -154,9 +154,6 @@ bool cEntity::Initialize(OwnedEntity a_Self, cWorld & a_EntityWorld)
ASSERT(m_World == nullptr);
ASSERT(GetParentChunk() == nullptr);
a_EntityWorld.AddEntity(std::move(a_Self));
ASSERT(m_World != nullptr);
cPluginManager::Get()->CallHookSpawnedEntity(a_EntityWorld, *this);
return true;
}