summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-30 12:46:26 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-30 12:46:26 +0200
commit0fdb1772083d7b4b8dd71c6f084acd9d2e001eec (patch)
tree4cd6964a056a4cbe92e93eb58d4e9a937d109522 /src/Items/ItemHandler.cpp
parentAdded slowness effect and added entity support. (diff)
downloadcuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.gz
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.bz2
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.lz
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.xz
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.zst
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemHandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp
index bceedaf69..ca0f04dcc 100644
--- a/src/Items/ItemHandler.cpp
+++ b/src/Items/ItemHandler.cpp
@@ -632,6 +632,7 @@ bool cItemHandler::GetEatEffect(cEntityEffect::eType & a_EffectType, int & a_Eff
bool cItemHandler::EatItem(cPlayer * a_Player, cItem * a_Item)
{
UNUSED(a_Item);
+ a_Player->GetInventory().RemoveOneEquippedItem();
FoodInfo Info = GetFoodInfo();
if ((Info.FoodLevel > 0) || (Info.Saturation > 0.f))