summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-13 17:05:59 +0200
committerMattes D <github@xoft.cz>2014-09-13 17:05:59 +0200
commit5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b (patch)
treefcf2f5efe358c8c9ab7e3f54bc3a95a257e9f899 /src/Entities/Player.cpp
parentGittip is now Gratipay (diff)
parentAdded extra mushroom handler. (diff)
downloadcuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.tar
cuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.tar.gz
cuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.tar.bz2
cuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.tar.lz
cuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.tar.xz
cuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.tar.zst
cuberite-5b63a7fe9864a7b1afdf526a2b3b6d29ed991b9b.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index b0da6965a..ea795e346 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -627,15 +627,6 @@ void cPlayer::FinishEating(void)
return;
}
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);
- }
}