mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-20 01:05:52 +01:00
Merge branch 'development' into 'development'
fixed an issue See merge request Songoda/fabledskyblock!32
This commit is contained in:
commit
6d2f8ce3f0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user