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
1 changed files with 1 additions and 0 deletions

View File

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