Fixed small bug in item extraction code.

This commit is contained in:
RainWarrior committed 2016-01-27 13:29:07 +03:00
1 parent a0bf0155ac
commit be6c2bd588
1 file changed
+1 -1
@@ -31,7 +31,7 @@ public class VanillaInventoryCodeHooks
for (int j = 0; j < dest.getSizeInventory(); j++)
{
ItemStack destStack = dest.getStackInSlot(j);
if (destStack == null || destStack.stackSize < destStack.getMaxStackSize() || ItemHandlerHelper.canItemStacksStack(extractItem, destStack))
if (destStack == null || destStack.stackSize < destStack.getMaxStackSize() && ItemHandlerHelper.canItemStacksStack(extractItem, destStack))
{
extractItem = handler.extractItem(i, 1, false);
if (destStack == null)