Possible fix for #1182

This commit is contained in:
CovertJaguar 2013-09-01 04:51:50 -07:00
parent 57c58036b7
commit ddc203fe59

View file

@ -574,8 +574,11 @@ public class PipeTransportItems extends PipeTransport {
return false;
}
if(tile instanceof ISidedInventory)
return ((ISidedInventory)tile).getAccessibleSlotsFromSide(side.getOpposite().ordinal()).length > 0;
if (tile instanceof ISidedInventory) {
int[] slots = ((ISidedInventory) tile).getAccessibleSlotsFromSide(side.getOpposite().ordinal());
return slots != null && slots.length > 0;
}
return tile instanceof TileGenericPipe || tile instanceof ISpecialInventory || (tile instanceof IInventory && ((IInventory) tile).getSizeInventory() > 0)
|| (tile instanceof IMachine && ((IMachine) tile).manageSolids());
}