1
0
Whoops :/
This commit is contained in:
Tiger Wang 2015-06-17 00:27:50 +01:00
parent b650508d4b
commit 813ca04676

View File

@ -507,7 +507,7 @@ bool cHopperEntity::MoveItemsFromSlot(cBlockEntityWithItems & a_Entity, int a_Sl
auto PreviousCount = m_Contents.GetSlot(i).m_ItemCount; auto PreviousCount = m_Contents.GetSlot(i).m_ItemCount;
m_Contents.ChangeSlotCount(i, 1); m_Contents.ChangeSlotCount(i, 1);
if (PreviousCount == m_Contents.GetSlot(i).m_ItemCount + 1) if (PreviousCount + 1 == m_Contents.GetSlot(i).m_ItemCount)
{ {
// Successfully added a new item. (Failure condition consistutes: stack full) // Successfully added a new item. (Failure condition consistutes: stack full)
return true; return true;