}
}
public static void tick() {
if(firstRouter == -1) return;
IRouterManager rm = SimpleServiceLocator.routerManager;
int slotSentCount = 0;
//cork the compressor
SimpleServiceLocator.serverBufferHandler.setPause(true);
while(firstRouter != -1 && slotSentCount < inventorySlotsToUpdatePerTick){
routersNeedingUpdate.clear(firstRouter);
IRouter currentRouter = rm.getRouterUnsafe(firstRouter, false);
if(currentRouter != null) {
CoreRoutedPipe pipe = currentRouter.getCachedPipe();
if(pipe!=null)
slotSentCount += pipe.sendQueueChanged(true);
}