diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-28 19:32:20 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-28 19:32:20 +0200 |
commit | 142fa83124fc3b766916ac79fb037fea91a19a1e (patch) | |
tree | a52bebee7aaceb5c6e25a25910cbf35536522d75 /src/BlockEntities/MobHeadEntity.cpp | |
parent | Fix hay place sound. (diff) | |
download | cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.tar cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.tar.gz cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.tar.bz2 cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.tar.lz cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.tar.xz cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.tar.zst cuberite-142fa83124fc3b766916ac79fb037fea91a19a1e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/MobHeadEntity.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/BlockEntities/MobHeadEntity.cpp b/src/BlockEntities/MobHeadEntity.cpp index 60d6a123f..ce895eb6f 100644 --- a/src/BlockEntities/MobHeadEntity.cpp +++ b/src/BlockEntities/MobHeadEntity.cpp @@ -70,11 +70,8 @@ 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); + 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); } |