mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fixes #402
This commit is contained in:
parent
326e5615a0
commit
9bb9aa6126
@ -1,6 +1,7 @@
|
|||||||
package com.intellectualcrafters.plot.util;
|
package com.intellectualcrafters.plot.util;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.ArrayDeque;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@ -222,7 +223,7 @@ public class ExpireManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static List<Plot> getOldPlots(final String world) {
|
public static List<Plot> getOldPlots(final String world) {
|
||||||
final Collection<Plot> plots = PS.get().getPlots(world).values();
|
final ArrayList<Plot> plots = new ArrayList<>(PS.get().getPlots(world).values());
|
||||||
final List<Plot> toRemove = new ArrayList<>();
|
final List<Plot> toRemove = new ArrayList<>();
|
||||||
Iterator<Plot> iter = plots.iterator();
|
Iterator<Plot> iter = plots.iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user