{
return itemStack;
}
}
IInventory inventory = (IInventory)tileEntity;
ItemStack[] testInv = copyInvFromSide(inventory, side);
if(testInv == null)
{
return itemStack;
}
List<TransporterStack> insertQueue = getStacksToDest(Coord4D.get(tileEntity));
for(TransporterStack tStack : insertQueue)
{
testInsert(inventory, testInv, side, tStack);
}
ItemStack toInsert = itemStack.copy();
if(!(inventory instanceof ISidedInventory))
{
inventory = InventoryUtils.checkChestInv(inventory);
for(int i = 0; i <= inventory.getSizeInventory() - 1; i++)
{
if(!inventory.isItemValidForSlot(i, toInsert))
{
continue;
}
ItemStack inSlot = testInv[i];