Merge pull request #2210 from nounoursheureux/bucket-craft
Cake crafting now give back the bucket
This commit is contained in:
commit
f1a3535d6e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user