summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-26 18:42:28 +0200
committerMattes D <github@xoft.cz>2014-06-26 18:42:28 +0200
commite60b73ce69b715b1368058cf3992fe7ec197a077 (patch)
treee914e15ab89488db2454a86c47d7998104595367 /src/Entities/Player.cpp
parentMerged branch 'howaner/Pickups'. (diff)
parentAdd comment. (diff)
downloadcuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.tar
cuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.tar.gz
cuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.tar.bz2
cuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.tar.lz
cuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.tar.xz
cuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.tar.zst
cuberite-e60b73ce69b715b1368058cf3992fe7ec197a077.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index e1e03fded..7b4fd219d 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1,4 +1,4 @@
-
+
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Player.h"
@@ -412,6 +412,7 @@ void cPlayer::StartChargingBow(void)
LOGD("Player \"%s\" started charging their bow", GetName().c_str());
m_IsChargingBow = true;
m_BowCharge = 0;
+ m_World->BroadcastEntityMetadata(*this, m_ClientHandle);
}
@@ -424,6 +425,8 @@ int cPlayer::FinishChargingBow(void)
int res = m_BowCharge;
m_IsChargingBow = false;
m_BowCharge = 0;
+ m_World->BroadcastEntityMetadata(*this, m_ClientHandle);
+
return res;
}
@@ -436,6 +439,7 @@ void cPlayer::CancelChargingBow(void)
LOGD("Player \"%s\" cancelled charging their bow at a charge of %d", GetName().c_str(), m_BowCharge);
m_IsChargingBow = false;
m_BowCharge = 0;
+ m_World->BroadcastEntityMetadata(*this, m_ClientHandle);
}