Possible fix for #1182
This commit is contained in:
parent
57c58036b7
commit
ddc203fe59
1 changed files with 6 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue