summaryrefslogtreecommitdiffstats
path: root/source/Entities/Entity.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-25 21:25:13 +0200
committermadmaxoft <github@xoft.cz>2013-08-25 21:25:13 +0200
commita7447b4c7e890f550ed02431ba00ec909d4e2b88 (patch)
tree7a9f233789b4d31aa82fd325aff4d48fe3ac6ae2 /source/Entities/Entity.cpp
parentMerged branch 'master' into Projectiles. (diff)
downloadcuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.tar
cuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.tar.gz
cuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.tar.bz2
cuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.tar.lz
cuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.tar.xz
cuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.tar.zst
cuberite-a7447b4c7e890f550ed02431ba00ec909d4e2b88.zip
Diffstat (limited to 'source/Entities/Entity.cpp')
-rw-r--r--source/Entities/Entity.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Entities/Entity.cpp b/source/Entities/Entity.cpp
index 19a65ef4e..65860118a 100644
--- a/source/Entities/Entity.cpp
+++ b/source/Entities/Entity.cpp
@@ -144,6 +144,10 @@ bool cEntity::Initialize(cWorld * a_World)
m_World->AddEntity(this);
cPluginManager::Get()->CallHookSpawnedEntity(*a_World, *this);
+
+ // Spawn the entity on the clients:
+ a_World->BroadcastSpawnEntity(*this);
+
return true;
}