Merge pull request #1157 from Dimach/unstable-1

Fixed bug - isAllowedToPutIntoSlot don't check size of inventory.
This commit is contained in:
Blood-Asp 2017-08-11 14:54:23 +02:00 committed by GitHub
commit 2c50b0a825

View file

@ -505,7 +505,7 @@ public class GT_Utility {
}
if (aTileEntity instanceof ISidedInventory && !((ISidedInventory) aTileEntity).canInsertItem(aSlot, aStack, aSide))
return false;
return aTileEntity.isItemValidForSlot(aSlot, aStack);
return aSlot < aTileEntity.getSizeInventory() && aTileEntity.isItemValidForSlot(aSlot, aStack);
}
/**