diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-14 22:23:20 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-14 22:23:20 +0100 |
commit | 71250b275f2c1b16ff81c74c6e3f5bc2794ebb97 (patch) | |
tree | 7ceedd7d9357d5e7b32f05e1d2e3848934bb6089 /src/Entities/Player.cpp | |
parent | Forgot to commit the ClientHandle. (diff) | |
download | cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.tar cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.tar.gz cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.tar.bz2 cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.tar.lz cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.tar.xz cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.tar.zst cuberite-71250b275f2c1b16ff81c74c6e3f5bc2794ebb97.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 20c4818b2..b2485a8e2 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -557,12 +557,12 @@ void cPlayer::FoodPoison(int a_NumTicks) m_FoodPoisonedTicksRemaining = std::max(m_FoodPoisonedTicksRemaining, a_NumTicks); if (!HasBeenFoodPoisoned) { - m_ClientHandle->SendRemoveEntityEffect(*this, 17); + m_ClientHandle->SendRemoveEntityEffect(*this, E_EFFECT_HUNGER); SendHealth(); } else { - m_ClientHandle->SendEntityEffect(*this, 17, 0, 20); + m_ClientHandle->SendEntityEffect(*this, E_EFFECT_HUNGER, 0, 20); } } @@ -1710,7 +1710,7 @@ void cPlayer::HandleFood(void) } else { - m_ClientHandle->SendRemoveEntityEffect(*this, 17); // remove the "Hunger" effect. + m_ClientHandle->SendRemoveEntityEffect(*this, E_EFFECT_HUNGER); // remove the "Hunger" effect. } // Apply food exhaustion that has accumulated: |