1
0

Don't attempt to give bucket with item count of 0

This commit is contained in:
Mat 2020-03-23 11:39:32 +02:00 committed by GitHub
parent 4b57513dd6
commit 7d05e4402f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ void cCraftingGrid::ConsumeGrid(const cCraftingGrid & a_Grid)
{
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);
m_Items[ThisIdx] = cItem(E_ITEM_BUCKET);
}
else
{