summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockMobHead.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-03-07 11:44:16 +0100
committerHowaner <franzi.moos@googlemail.com>2014-03-07 11:44:16 +0100
commitc2090c0d11313bd67b02c482f1ca80d5c4567d27 (patch)
tree6f636e18ad065a8f6d38585b45bd6d9c640c3450 /src/Blocks/BlockMobHead.h
parentAdd Flower Pots (diff)
downloadcuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.tar
cuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.tar.gz
cuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.tar.bz2
cuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.tar.lz
cuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.tar.xz
cuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.tar.zst
cuberite-c2090c0d11313bd67b02c482f1ca80d5c4567d27.zip
Diffstat (limited to 'src/Blocks/BlockMobHead.h')
-rw-r--r--src/Blocks/BlockMobHead.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Blocks/BlockMobHead.h b/src/Blocks/BlockMobHead.h
index 6a00c3acd..2b128f13b 100644
--- a/src/Blocks/BlockMobHead.h
+++ b/src/Blocks/BlockMobHead.h
@@ -29,7 +29,7 @@ public:
BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta
) override
{
- class cCallback : public cMobHeadBlockCallback
+ class cCallback : public cMobHeadCallback
{
cPlayer * m_Player;
NIBBLETYPE m_OldBlockMeta;
@@ -45,6 +45,7 @@ public:
a_MobHeadEntity->SetType(static_cast<eMobHeadType>(m_OldBlockMeta));
a_MobHeadEntity->SetRotation(static_cast<eMobHeadRotation>(Rotation));
+ a_MobHeadEntity->GetWorld()->BroadcastBlockEntity(a_MobHeadEntity->GetPosX(), a_MobHeadEntity->GetPosY(), a_MobHeadEntity->GetPosZ(), m_Player->GetClientHandle());
return false;
}
@@ -59,7 +60,7 @@ public:
a_BlockMeta = a_BlockFace;
cWorld * World = (cWorld *) &a_WorldInterface;
- World->DoWithMobHeadBlockAt(a_BlockX, a_BlockY, a_BlockZ, Callback);
+ World->DoWithMobHeadAt(a_BlockX, a_BlockY, a_BlockZ, Callback);
a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, a_BlockMeta);
}
} ;