1
0

Merge pull request #2210 from nounoursheureux/bucket-craft

Cake crafting now give back the bucket
This commit is contained in:
Alexander Harkness 2015-06-07 14:43:16 +01:00
commit f1a3535d6e

View File

@ -168,7 +168,14 @@ void cCraftingGrid::ConsumeGrid(const cCraftingGrid & a_Grid)
m_Items[ThisIdx].m_ItemCount -= NumWantedItems; m_Items[ThisIdx].m_ItemCount -= NumWantedItems;
if (m_Items[ThisIdx].m_ItemCount == 0) if (m_Items[ThisIdx].m_ItemCount == 0)
{ {
m_Items[ThisIdx].Clear(); if ((m_Items[ThisIdx].m_ItemType == E_ITEM_MILK) || (m_Items[ThisIdx].m_ItemType == E_ITEM_WATER_BUCKET) || (m_Items[ThisIdx].m_ItemType == E_ITEM_LAVA_BUCKET))
{
m_Items[ThisIdx] = cItem(E_ITEM_BUCKET, m_Items[ThisIdx].m_ItemCount);
}
else
{
m_Items[ThisIdx].Clear();
}
} }
} // for x, for y } // for x, for y
} }