From 06caf1c1478af51d17fbcd852b86d619518dcf5e Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 19 Feb 2021 13:13:09 -0800 Subject: [PATCH] Ignore islands in worlds that are not loaded. --- .../java/world/bentobox/bentobox/managers/IslandsManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java b/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java index 1078c460b..cd2578472 100644 --- a/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java @@ -1581,6 +1581,7 @@ public class IslandsManager { Map> 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 -> {