summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-04-09 22:26:06 +0200
committerGitHub <noreply@github.com>2020-04-09 22:26:06 +0200
commitd966a126248ef653d3cac96ab4ba018dcfb0a938 (patch)
tree1d2b1710425c3dd51b5d2578cca08aae2ab1f261 /src/World.cpp
parentFalling blocks can now be spawned at any position. (#4620) (diff)
downloadcuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.tar
cuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.tar.gz
cuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.tar.bz2
cuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.tar.lz
cuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.tar.xz
cuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.tar.zst
cuberite-d966a126248ef653d3cac96ab4ba018dcfb0a938.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 fdb66b87d..2df7ef4eb 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -1032,6 +1032,7 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La
EntityPtr->OnAddToWorld(*this);
ASSERT(!EntityPtr->IsTicking());
EntityPtr->SetIsTicking(true);
+ cPluginManager::Get()->CallHookSpawnedEntity(*this, *Entity);
}
EntitiesToAdd.clear();
@@ -3088,7 +3089,6 @@ void cWorld::ScheduleTask(int a_DelayTicks, std::function<void (cWorld &)> a_Tas
void cWorld::AddEntity(OwnedEntity a_Entity)
{
- a_Entity->SetWorld(this);
cCSLock Lock(m_CSEntitiesToAdd);
m_EntitiesToAdd.emplace_back(std::move(a_Entity));
}