1
0
Fork 0

Cake crafting now give back the bucket

This commit is contained in:
Nounours Heureux 2015-06-07 15:02:38 +02:00
parent 4ece4a61f6
commit 1a7e8f3e4f
1 changed files with 8 additions and 1 deletions

View File

@ -168,7 +168,14 @@ void cCraftingGrid::ConsumeGrid(const cCraftingGrid & a_Grid)
m_Items[ThisIdx].m_ItemCount -= NumWantedItems;
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
}