Ignore islands in worlds that are not loaded.

This commit is contained in:
tastybento 2021-02-19 13:13:09 -08:00
parent db3b339be2
commit 06caf1c147

View File

@ -1581,6 +1581,7 @@ public class IslandsManager {
Map<UUID, List<Island>> memberships = new HashMap<>(); Map<UUID, List<Island>> memberships = new HashMap<>();
handler.loadObjects() handler.loadObjects()
.stream().filter(i -> i.getOwner() != null) .stream().filter(i -> i.getOwner() != null)
.filter(i -> i.getWorld() != null)
.filter(i -> i.getWorld().equals(world)) .filter(i -> i.getWorld().equals(world))
.filter(i -> !i.isDoNotLoad()) .filter(i -> !i.isDoNotLoad())
.forEach(i -> { .forEach(i -> {