summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.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/Entities/Player.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/Entities/Player.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index b0dd40615..5e0da3298 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -627,13 +627,11 @@ void cPlayer::FinishEating(void)
}
ItemHandler->OnFoodEaten(m_World, this, &Item);
- GetInventory().RemoveOneEquippedItem();
-
// if the food is mushroom soup, return a bowl to the inventory
if (Item.m_ItemType == E_ITEM_MUSHROOM_SOUP)
{
- cItem EmptyBowl(E_ITEM_BOWL);
- GetInventory().AddItem(EmptyBowl, true, true);
+ GetInventory().RemoveOneEquippedItem();
+ GetInventory().AddItem(cItem(E_ITEM_BOWL), true, true);
}
}