Merge pull request #1155 from ganymedes01/master

Better handling for ISidedInventory tile entities
This commit is contained in:
CovertJaguar 2013-08-23 07:37:38 -07:00
commit bfd57e4b0d

View file

@ -572,7 +572,9 @@ public class PipeTransportItems extends PipeTransport {
if (BlockGenericPipe.isValid(pipe2) && !(pipe2.transport instanceof PipeTransportItems))
return false;
}
if(tile instanceof ISidedInventory)
return ((ISidedInventory)tile).getAccessibleSlotsFromSide(side.getOpposite().ordinal()).length > 0;
return tile instanceof TileGenericPipe || tile instanceof ISpecialInventory || (tile instanceof IInventory && ((IInventory) tile).getSizeInventory() > 0)
|| (tile instanceof IMachine && ((IMachine) tile).manageSolids());
}