diff options
author | Mattes D <github@xoft.cz> | 2014-06-26 18:42:28 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-26 18:42:28 +0200 |
commit | e60b73ce69b715b1368058cf3992fe7ec197a077 (patch) | |
tree | e914e15ab89488db2454a86c47d7998104595367 /src/Entities/Player.cpp | |
parent | Merged branch 'howaner/Pickups'. (diff) | |
parent | Add comment. (diff) | |
download | cuberite-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.cpp | 6 |
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); } |