if(toSend > internalStorage) {
toSend = internalStorage;
}
IRouter destinationRouter = SimpleServiceLocator.routerManager.getRouter(order.getKey());
if(destinationRouter != null && destinationRouter.getPipe() != null) {
WorldUtil util = new WorldUtil(getWorldObj(), xCoord, yCoord, zCoord);
outerTiles:
for(AdjacentTile adjacent: util.getAdjacentTileEntities(false)) {
if(adjacent.tile instanceof LogisticsTileGenericPipe) {
if(((LogisticsTileGenericPipe)adjacent.tile).pipe instanceof CoreRoutedPipe) {
if(((CoreRoutedPipe)((LogisticsTileGenericPipe)adjacent.tile).pipe).stillNeedReplace()) continue;
IRouter sourceRouter = ((CoreRoutedPipe)((LogisticsTileGenericPipe)adjacent.tile).pipe).getRouter();
if(sourceRouter != null) {