final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
if(pipe == null) {
return;
}
if(pipe.pipe instanceof PipeItemsInvSysConnector) {
PipeItemsInvSysConnector invCon = (PipeItemsInvSysConnector) pipe.pipe;
invCon.resistance = getInteger();
}
} else {
final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
if(pipe == null) {
return;
}
if(pipe.pipe instanceof PipeItemsInvSysConnector) {
PipeItemsInvSysConnector invCon = (PipeItemsInvSysConnector) pipe.pipe;
invCon.resistance = getInteger();
invCon.getRouter().update(true, invCon);
}
}
}