if (pipe.signalStrength[color.ordinal()] > 1) {
for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {
TileEntity tile = pipe.container.getTile(o);
if (tile instanceof LogisticsTileGenericPipe) {
LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;
if (LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe) && tilePipe.pipe.bcPipePart.getWireSet()[color.ordinal()]) {
if (pipe.isWireConnectedTo(tile, color)) {
tilePipe.pipe.bcPipePart.receiveSignal(pipe.signalStrength[color.ordinal()] - 1, color);
}