diff options
author | James Ravenscroft <ravenscroftj@gmail.com> | 2013-08-08 17:32:14 +0200 |
---|---|---|
committer | James Ravenscroft <ravenscroftj@gmail.com> | 2013-08-08 17:32:14 +0200 |
commit | 9f7db50de0537ae9e918ab3a9cf49e01eda93cf1 (patch) | |
tree | 3d76e422b3f50d4e91faabeb55f62af03e930bd3 /source/Player.cpp | |
parent | cPlugin_NewLua is now completely rewritten to use templated LuaState calls. (diff) | |
download | cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.tar cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.tar.gz cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.tar.bz2 cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.tar.lz cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.tar.xz cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.tar.zst cuberite-9f7db50de0537ae9e918ab3a9cf49e01eda93cf1.zip |
Diffstat (limited to 'source/Player.cpp')
-rw-r--r-- | source/Player.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index fb752ed87..6219523cf 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -400,7 +400,14 @@ 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, 1, 0, ""); + GetInventory().AddItem(emptyBowl, true, true); + } } |