diff --git a/src/main/java/com/songoda/skyblock/island/IslandLevel.java b/src/main/java/com/songoda/skyblock/island/IslandLevel.java index dba05c80..24a86936 100644 --- a/src/main/java/com/songoda/skyblock/island/IslandLevel.java +++ b/src/main/java/com/songoda/skyblock/island/IslandLevel.java @@ -70,6 +70,8 @@ public class IslandLevel { for (Entry entry : this.materials.entrySet()) { ConfigurationSection current = materialSection.getConfigurationSection(entry.getKey()); + if (current == null) continue; + long pointsRequired = current.getLong("Points", 0); if (pointsRequired != 0) pointsEarned = pointsEarned + (entry.getValue() * pointsRequired);