summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-06 09:17:49 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:17:32 +0200
commit87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33 (patch)
treec901fa966d4dbaf836f4c06081cd4aeddfa8575f /src/Entities/Player.cpp
parentAdded classes for splash potions and wither skulls (diff)
downloadcuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.gz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.bz2
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.lz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.xz
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.tar.zst
cuberite-87b1bfaf2aa62bf600293d11d0b3c73cfe9f9e33.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index fdc0bb390..035973a16 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -584,12 +584,12 @@ void cPlayer::FoodPoison(int a_NumTicks)
m_FoodPoisonedTicksRemaining = std::max(m_FoodPoisonedTicksRemaining, a_NumTicks);
if (!HasBeenFoodPoisoned)
{
- m_World->BroadcastRemoveEntityEffect(*this, E_EFFECT_HUNGER);
+ m_World->BroadcastRemoveEntityEffect(*this, cEntityEffect::efHunger);
SendHealth();
}
else
{
- m_World->BroadcastEntityEffect(*this, E_EFFECT_HUNGER, 0, 400); // Give the player the "Hunger" effect for 20 seconds.
+ m_World->BroadcastEntityEffect(*this, cEntityEffect::efHunger, 0, 400); // Give the player the "Hunger" effect for 20 seconds.
}
}
@@ -1930,7 +1930,7 @@ void cPlayer::HandleFood(void)
}
else
{
- m_World->BroadcastRemoveEntityEffect(*this, E_EFFECT_HUNGER); // Remove the "Hunger" effect.
+ m_World->BroadcastRemoveEntityEffect(*this, cEntityEffect::efHunger); // Remove the "Hunger" effect.
}
// Apply food exhaustion that has accumulated: