summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-18 18:23:18 +0200
committerMattes D <github@xoft.cz>2014-06-18 18:23:18 +0200
commitc30b7b87354cd7868dd986008ac91187390a08b2 (patch)
tree5f7222853d649ca5e66a2640462b4468be6fd79e /src/BlockEntities
parentMerge pull request #1100 from Howaner/Slabs (diff)
parentMerge branch 'master' into GlobalFixes (diff)
downloadcuberite-c30b7b87354cd7868dd986008ac91187390a08b2.tar
cuberite-c30b7b87354cd7868dd986008ac91187390a08b2.tar.gz
cuberite-c30b7b87354cd7868dd986008ac91187390a08b2.tar.bz2
cuberite-c30b7b87354cd7868dd986008ac91187390a08b2.tar.lz
cuberite-c30b7b87354cd7868dd986008ac91187390a08b2.tar.xz
cuberite-c30b7b87354cd7868dd986008ac91187390a08b2.tar.zst
cuberite-c30b7b87354cd7868dd986008ac91187390a08b2.zip
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/MobHeadEntity.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/BlockEntities/MobHeadEntity.cpp b/src/BlockEntities/MobHeadEntity.cpp
index dc9c18d58..ce895eb6f 100644
--- a/src/BlockEntities/MobHeadEntity.cpp
+++ b/src/BlockEntities/MobHeadEntity.cpp
@@ -70,6 +70,8 @@ void cMobHeadEntity::SetOwner(const AString & a_Owner)
void cMobHeadEntity::SendTo(cClientHandle & a_Client)
{
+ cWorld * World = a_Client.GetPlayer()->GetWorld();
+ a_Client.SendBlockChange(m_PosX, m_PosY, m_PosZ, m_BlockType, World->GetBlockMeta(m_PosX, m_PosY, m_PosZ));
a_Client.SendUpdateBlockEntity(*this);
}