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

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