4344454647484950515253
Queue<DelayedEvent> continueEvents = new LinkedList(); while (!delayedEvents.isEmpty()) { DelayedEvent evt = delayedEvents.poll(); evt.update(); if (evt.ticks > 0) { continueEvents.add(evt); }