From 9bb9aa61264bd36356c8b68b42fa638953e871ca Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 15 Jul 2015 00:12:12 +1000 Subject: [PATCH] Fixes #402 --- .../java/com/intellectualcrafters/plot/util/ExpireManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java index 175934846..aaad3001e 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ExpireManager.java @@ -1,6 +1,7 @@ package com.intellectualcrafters.plot.util; import java.io.File; +import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; @@ -222,7 +223,7 @@ public class ExpireManager { } public static List getOldPlots(final String world) { - final Collection plots = PS.get().getPlots(world).values(); + final ArrayList plots = new ArrayList<>(PS.get().getPlots(world).values()); final List toRemove = new ArrayList<>(); Iterator iter = plots.iterator(); while (iter.hasNext()) {