Fixed BIG ISidedInventory Bug

This commit is contained in:
Henry Mao 2013-01-12 22:26:34 +08:00
parent 7f08eaa0ef
commit bf481c0eca

View file

@ -265,7 +265,7 @@ public class TileEntityManipulator extends TileEntityFilterable implements IRota
for (int i = startIndex; i < startIndex + inventory.getSizeInventorySide(direction); i++)
{
itemStack = this.addStackToInventory(startIndex, inventory, itemStack);
itemStack = this.addStackToInventory(i, inventory, itemStack);
if (itemStack == null) { return null; }
}
}
@ -296,7 +296,6 @@ public class TileEntityManipulator extends TileEntityFilterable implements IRota
{
inventory.setInventorySlotContents(slotIndex, itemStack);
if (inventory.getStackInSlot(slotIndex) == null) { return itemStack; }
return null;
}
else if (stackInInventory.isItemEqual(itemStack) && stackInInventory.isStackable())