if (stack != null) {
// System.out.println("out: Stack " + stack.toString());
stack.stackSize -= Utils.addToRandomPipeAround(container.worldObj, container.xCoord, container.yCoord, container.zCoord, receivedStack.getKey(), stack);
if (stack.stackSize > 0) {
Position destPos = new Position(container.xCoord, container.yCoord, container.zCoord, receivedStack.getKey());
destPos.moveForwards(0.3);
InvUtils.dropItems(container.worldObj, stack, (int) destPos.x, (int) destPos.y, (int) destPos.z);
}
}