Merge branch 'development' into 'development'

fixed an issue

See merge request Songoda/fabledskyblock!32
This commit is contained in:
Brianna O'Keefe 2019-10-21 14:58:16 +00:00
commit 6d2f8ce3f0

View File

@ -70,6 +70,8 @@ public class IslandLevel {
for (Entry<String, Long> entry : this.materials.entrySet()) { for (Entry<String, Long> entry : this.materials.entrySet()) {
ConfigurationSection current = materialSection.getConfigurationSection(entry.getKey()); ConfigurationSection current = materialSection.getConfigurationSection(entry.getKey());
if (current == null) continue;
long pointsRequired = current.getLong("Points", 0); long pointsRequired = current.getLong("Points", 0);
if (pointsRequired != 0) pointsEarned = pointsEarned + (entry.getValue() * pointsRequired); if (pointsRequired != 0) pointsEarned = pointsEarned + (entry.getValue() * pointsRequired);