diff options
author | Cow <cow@volloeko.de> | 2021-06-29 15:02:57 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2021-06-29 15:02:57 +0200 |
commit | b2e1c53efabf3fc1d46f36feb674b615425d0b54 (patch) | |
tree | 45c2306f0c7cc841d65688684ccf4544e8e3dd38 /src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java | |
parent | eb0d8a25027a874ad2341cb77883fa5cc06cfd88 (diff) | |
download | Cowlection-b2e1c53efabf3fc1d46f36feb674b615425d0b54.tar.gz Cowlection-b2e1c53efabf3fc1d46f36feb674b615425d0b54.tar.bz2 Cowlection-b2e1c53efabf3fc1d46f36feb674b615425d0b54.zip |
Added support for 'new' SkyBlock content
- Added Enderman slayer and Voidling minions
- Added support for HPB and master stars
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java b/src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java index 8a3e067..2fa802b 100644 --- a/src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java +++ b/src/main/java/de/cowtipper/cowlection/data/HySkyBlockStats.java @@ -209,7 +209,7 @@ public class HySkyBlockStats { Map<XpTables.Slayer, Integer> slayerLevels = new EnumMap<>(XpTables.Slayer.class); for (XpTables.Slayer slayerBoss : XpTables.Slayer.values()) { SlayerBossDetails bossDetails = slayer_bosses.get(slayerBoss.name().toLowerCase()); - int slayerLevel = slayerBoss.getLevel(bossDetails.xp); + int slayerLevel = bossDetails != null ? slayerBoss.getLevel(bossDetails.xp) : 0; slayerLevels.put(slayerBoss, slayerLevel); } return slayerLevels; |