summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2017-05-28 16:07:54 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-28 19:37:47 +0200
commitde0c86a690d3fe265ded02696505e2d601ca1c2a (patch)
treee84ae3b2585713b3ea3862871476b2ece6c3f94c
parentDebuggers: Added the "/come" command to test mob pathfinding. (#3734) (diff)
downloadcuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.tar
cuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.tar.gz
cuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.tar.bz2
cuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.tar.lz
cuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.tar.xz
cuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.tar.zst
cuberite-de0c86a690d3fe265ded02696505e2d601ca1c2a.zip
-rw-r--r--src/BlockEntities/MobHeadEntity.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/BlockEntities/MobHeadEntity.cpp b/src/BlockEntities/MobHeadEntity.cpp
index 068cc3ddf..01529f4d0 100644
--- a/src/BlockEntities/MobHeadEntity.cpp
+++ b/src/BlockEntities/MobHeadEntity.cpp
@@ -41,6 +41,7 @@ void cMobHeadEntity::SetType(const eMobHeadType & a_Type)
m_OwnerName = m_OwnerUUID = m_OwnerTexture = m_OwnerTextureSignature = "";
}
m_Type = a_Type;
+ m_World->BroadcastBlockEntity(m_PosX, m_PosY, m_PosZ);
}
@@ -50,6 +51,7 @@ void cMobHeadEntity::SetType(const eMobHeadType & a_Type)
void cMobHeadEntity::SetRotation(eMobHeadRotation a_Rotation)
{
m_Rotation = a_Rotation;
+ m_World->BroadcastBlockEntity(m_PosX, m_PosY, m_PosZ);
}
@@ -76,6 +78,8 @@ void cMobHeadEntity::SetOwner(const cPlayer & a_Owner)
break;
}
}
+
+ m_World->BroadcastBlockEntity(m_PosX, m_PosY, m_PosZ);
}
@@ -93,6 +97,7 @@ void cMobHeadEntity::SetOwner(const AString & a_OwnerUUID, const AString & a_Own
m_OwnerName = a_OwnerName;
m_OwnerTexture = a_OwnerTexture;
m_OwnerTextureSignature = a_OwnerTextureSignature;
+ m_World->BroadcastBlockEntity(m_PosX, m_PosY, m_PosZ);
}