mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 14:03:22 +00:00
Entity tracking and invalid world detection
This commit is contained in:
parent
12f024664a
commit
1f8702f072
4 changed files with 79 additions and 3 deletions
|
@ -136,8 +136,10 @@ public class PlotSquared {
|
|||
|
||||
public static Set<Plot> getPlots() {
|
||||
final ArrayList<Plot> newplots = new ArrayList<>();
|
||||
for (final HashMap<PlotId, Plot> world : plots.values()) {
|
||||
newplots.addAll(world.values());
|
||||
for (final Entry<String, HashMap<PlotId, Plot>> entry : plots.entrySet()) {
|
||||
if (isPlotWorld(entry.getKey())) {
|
||||
newplots.addAll(entry.getValue().values());
|
||||
}
|
||||
}
|
||||
return new LinkedHashSet<>(newplots);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue