summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
index f2dbfbad..bc0cd876 100644
--- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
+++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
@@ -286,9 +286,7 @@ public class CraftScheduler implements BukkitScheduler {
}
final ArrayList<BukkitTask> pending = new ArrayList<BukkitTask>();
- final Iterator<CraftTask> it = runners.values().iterator();
- while (it.hasNext()) {
- final CraftTask task = it.next();
+ for (CraftTask task : runners.values()) {
if (task.getPeriod() >= -1l) {
pending.add(task);
}