mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 13:03:06 +00:00
fixes #251
This commit is contained in:
parent
6ec4668177
commit
09424c30b4
5 changed files with 13 additions and 6 deletions
|
@ -146,6 +146,14 @@ public class PlotSquared {
|
|||
return new LinkedHashSet<>(newplots);
|
||||
}
|
||||
|
||||
public static Set<Plot> getPlotsRaw() {
|
||||
final ArrayList<Plot> newplots = new ArrayList<>();
|
||||
for (final Entry<String, HashMap<PlotId, Plot>> entry : plots.entrySet()) {
|
||||
newplots.addAll(entry.getValue().values());
|
||||
}
|
||||
return new LinkedHashSet<>(newplots);
|
||||
}
|
||||
|
||||
public static ArrayList<Plot> sortPlots(Collection<Plot> plots) {
|
||||
ArrayList<Plot> newPlots = new ArrayList<>();
|
||||
newPlots.addAll(plots);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue