public void run() { Handler handlers[] = HandlerStorage.handlers; boolean changing = false; for (int i = 0; i 0) { boolean mod = false; for (int i = 0; currentlyRunning < slots && i < handlers.length; i++) { int status = handlers[i].getStatus(); if (status == HandlerCore.WAITING) { handlers[i].activate(); currentlyRunning++; mod = true; } } if (mod) update(); } } count++; if (count > 3) { for (int i = 0; i < handlers.length; i++) { handlers[i].updateHandlerSettings(); } count = 0; } }