Add isItemValid check for ItemStackHandler (#5850)

This commit is contained in:
Someone authored and LexManos committed 2019-06-25 13:50:08 -07:00
1 parent 73bb18e78b
commit b2a5d34679
1 file changed
+3
@@ -80,6 +80,9 @@ public class ItemStackHandler implements IItemHandler, IItemHandlerModifiable, I
{
if (stack.isEmpty())
return ItemStack.EMPTY;
if (!isItemValid(slot, stack))
return stack;
validateSlotIndex(slot);