From 10c5c1227e5a663b3a53c336cfa6a0a98f874265 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Mon, 25 Sep 2017 18:17:45 +0200 Subject: BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038) --- src/BlockEntities/CommandBlockEntity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BlockEntities/CommandBlockEntity.cpp') diff --git a/src/BlockEntities/CommandBlockEntity.cpp b/src/BlockEntities/CommandBlockEntity.cpp index 43e9316c5..d8f358028 100644 --- a/src/BlockEntities/CommandBlockEntity.cpp +++ b/src/BlockEntities/CommandBlockEntity.cpp @@ -52,7 +52,7 @@ void cCommandBlockEntity::SetCommand(const AString & a_Cmd) Just documenting my experience in getting this to work :P */ - m_World->BroadcastBlockEntity(GetPosX(), GetPosY(), GetPosZ()); + m_World->BroadcastBlockEntity(GetPos()); } @@ -61,7 +61,7 @@ void cCommandBlockEntity::SetCommand(const AString & a_Cmd) void cCommandBlockEntity::SetLastOutput(const AString & a_LastOut) { - m_World->BroadcastBlockEntity(GetPosX(), GetPosY(), GetPosZ()); + m_World->BroadcastBlockEntity(GetPos()); m_LastOutput = a_LastOut; } -- cgit v1.2.3