diff options
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java index a1bf34a3..52ce46a1 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java @@ -198,7 +198,7 @@ public class FairySouls { } public void markClosestSoulFound() { - if (!trackSouls) return; + if (!trackSouls || allSoulsInCurrentLocation == null || allSoulsInCurrentLocation.isEmpty()) return; int closestIndex = -1; double closestDistSq = 10 * 10; for (int i = 0; i < allSoulsInCurrentLocation.size(); i++) { @@ -211,7 +211,7 @@ public class FairySouls { closestIndex = i; } } - if (closestIndex != -1) { + if (closestIndex != -1 && foundSoulsInLocation != null) { foundSoulsInLocation.add(closestIndex); refreshMissingSoulInfo(true); } |