From 9bb45ae426e3f5361d70dc374deb729edf9e8d34 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 27 Feb 2021 19:18:45 -0800 Subject: [PATCH] Fix bug with IslandsManager maxMembers NPE when logging in. --- .../java/world/bentobox/bentobox/managers/IslandsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java b/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java index d474b27b2..4c4ccb602 100644 --- a/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/IslandsManager.java @@ -518,7 +518,7 @@ public class IslandsManager { perm = "trust.maxsize"; } - int islandMax = island.getMaxMembers() == null ? worldDefault : island.getMaxMembers(rank); + int islandMax = island.getMaxMembers(rank) == null ? worldDefault : island.getMaxMembers(rank); // Update based on owner permissions if online if (Bukkit.getPlayer(island.getOwner()) != null) { User owner = User.getInstance(island.getOwner());