diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-28 15:54:43 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-28 15:54:43 +0200 |
commit | d8072da61f8a098ea30f579034ad976cf86408f3 (patch) | |
tree | d1e6af216543641acd6d621fd63b87df76b72fe0 /src/BlockEntities/MobHeadEntity.cpp | |
parent | Stuff. (diff) | |
download | cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.tar cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.tar.gz cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.tar.bz2 cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.tar.lz cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.tar.xz cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.tar.zst cuberite-d8072da61f8a098ea30f579034ad976cf86408f3.zip |
Diffstat (limited to 'src/BlockEntities/MobHeadEntity.cpp')
-rw-r--r-- | src/BlockEntities/MobHeadEntity.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/BlockEntities/MobHeadEntity.cpp b/src/BlockEntities/MobHeadEntity.cpp index dc9c18d58..60d6a123f 100644 --- a/src/BlockEntities/MobHeadEntity.cpp +++ b/src/BlockEntities/MobHeadEntity.cpp @@ -70,6 +70,11 @@ void cMobHeadEntity::SetOwner(const AString & a_Owner) void cMobHeadEntity::SendTo(cClientHandle & a_Client) { + BLOCKTYPE Block; + NIBBLETYPE Meta; + a_Client.GetPlayer()->GetWorld()->GetBlockTypeMeta(m_PosX, m_PosY, m_PosZ, Block, Meta); + + a_Client.SendBlockChange(m_PosX, m_PosY, m_PosZ, Block, Meta); a_Client.SendUpdateBlockEntity(*this); } |