diff options
| author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-03-15 12:54:09 -0400 |
|---|---|---|
| committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-03-15 12:54:09 -0400 |
| commit | 4f8f1bf6e647e547906ac1d0a7a6c8ef1f8ead34 (patch) | |
| tree | c27fee7c9792529806ec7d0d6cab76eb8d8b2d26 /src/main/java/de/hysky/skyblocker/skyblock/waypoint | |
| parent | faa2c51bb936ee729dee7aca30dc276a9264edfc (diff) | |
| download | Skyblocker-4f8f1bf6e647e547906ac1d0a7a6c8ef1f8ead34.tar.gz Skyblocker-4f8f1bf6e647e547906ac1d0a7a6c8ef1f8ead34.tar.bz2 Skyblocker-4f8f1bf6e647e547906ac1d0a7a6c8ef1f8ead34.zip | |
Fix Fairy Souls and Museum Item Cache
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/waypoint')
| -rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java b/src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java index 276b0eee..7f826b23 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java @@ -79,10 +79,9 @@ public class FairySouls { try (BufferedReader reader = Files.newBufferedReader(SkyblockerMod.CONFIG_DIR.resolve("found_fairy_souls.json"))) { for (Map.Entry<String, JsonElement> foundFairiesForProfileJson : JsonParser.parseReader(reader).getAsJsonObject().asMap().entrySet()) { for (Map.Entry<String, JsonElement> foundFairiesForLocationJson : foundFairiesForProfileJson.getValue().getAsJsonObject().asMap().entrySet()) { - String profile = foundFairiesForProfileJson.getKey(); - Map<BlockPos, ProfileAwareWaypoint> fairiesForLocation = fairySouls.get(profile); + Map<BlockPos, ProfileAwareWaypoint> fairiesForLocation = fairySouls.get(foundFairiesForLocationJson.getKey()); for (JsonElement foundFairy : foundFairiesForLocationJson.getValue().getAsJsonArray().asList()) { - fairiesForLocation.get(PosUtils.parsePosString(foundFairy.getAsString())).setFound(profile); + fairiesForLocation.get(PosUtils.parsePosString(foundFairy.getAsString())).setFound(foundFairiesForProfileJson.getKey()); } } } |
