}
@Override
public boolean isPipeConnected(TileEntity tile) {
Pipe pipe = null;
if (tile instanceof TileGenericPipe) {
pipe = ((TileGenericPipe) tile).pipe;
}
if (BuildCraftTransport.alwaysConnectPipes) {
return super.isPipeConnected(tile);
}
else {
if (pipe == null) {
return false;
}
if (this.container.pipe.getClass().equals(pipe.getClass()) && super.isPipeConnected(tile)) {
return true;
}
return true;