fixed an issue

This commit is contained in:
theone1000 2019-10-21 08:05:38 -06:00
parent be985d71c7
commit ade7394f54

View File

@ -70,6 +70,8 @@ public class IslandLevel {
for (Entry<String, Long> 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);