Possible fix for #1182
This commit is contained in:
parent
57c58036b7
commit
ddc203fe59
1 changed files with 6 additions and 3 deletions
|
@ -573,9 +573,12 @@ public class PipeTransportItems extends PipeTransport {
|
||||||
if (BlockGenericPipe.isValid(pipe2) && !(pipe2.transport instanceof PipeTransportItems))
|
if (BlockGenericPipe.isValid(pipe2) && !(pipe2.transport instanceof PipeTransportItems))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(tile instanceof ISidedInventory)
|
if (tile instanceof ISidedInventory) {
|
||||||
return ((ISidedInventory)tile).getAccessibleSlotsFromSide(side.getOpposite().ordinal()).length > 0;
|
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)
|
return tile instanceof TileGenericPipe || tile instanceof ISpecialInventory || (tile instanceof IInventory && ((IInventory) tile).getSizeInventory() > 0)
|
||||||
|| (tile instanceof IMachine && ((IMachine) tile).manageSolids());
|
|| (tile instanceof IMachine && ((IMachine) tile).manageSolids());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue