Skip to content

Commit

Permalink
Prevent exception in fairy souls (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron committed Nov 4, 2023
1 parent 3242f65 commit a309de2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/de/hysky/skyblocker/skyblock/FairySouls.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ private static boolean isFairySoulMissing(BlockPos fairySoulPos) {
}

public static void markAllFairiesOnCurrentIslandFound() {
initializeFoundFairiesForCurrentProfileAndLocation();
foundFairies.get(Utils.getProfile()).get(Utils.getLocationRaw()).addAll(fairySouls.get(Utils.getLocationRaw()));
if (fairySouls.get(Utils.getLocationRaw()) != null) {
initializeFoundFairiesForCurrentProfileAndLocation();
foundFairies.get(Utils.getProfile()).get(Utils.getLocationRaw()).addAll(fairySouls.get(Utils.getLocationRaw()));
}
}

public static void markAllFairiesOnCurrentIslandMissing() {
Expand Down

0 comments on commit a309de2

Please sign in to comment.