1
0

Fixed potion removing in creative mode.

This commit is contained in:
Howaner
2014-08-30 12:46:26 +02:00
parent 003206b1b0
commit 0fdb177208
5 changed files with 16 additions and 8 deletions

View File

@@ -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);
}
}