aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock/waypoint
diff options
context:
space:
mode:
authorKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2024-03-12 20:23:40 -0400
committerKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2024-03-12 20:23:40 -0400
commitfaa2c51bb936ee729dee7aca30dc276a9264edfc (patch)
tree80f89a62bea417a6beac5b31f95edffb5aee0a59 /src/main/java/de/hysky/skyblocker/skyblock/waypoint
parent26cf371c823d36bb289577914b3f52ffd4b924d5 (diff)
downloadSkyblocker-faa2c51bb936ee729dee7aca30dc276a9264edfc.tar.gz
Skyblocker-faa2c51bb936ee729dee7aca30dc276a9264edfc.tar.bz2
Skyblocker-faa2c51bb936ee729dee7aca30dc276a9264edfc.zip
Fix fairy and enigma souls profile loading and add chat profile detection
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/waypoint')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java4
1 files changed, 2 insertions, 2 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 f0e94770..276b0eee 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/waypoint/FairySouls.java
@@ -52,7 +52,7 @@ public class FairySouls {
@SuppressWarnings("UnusedReturnValue")
public static CompletableFuture<Void> runAsyncAfterFairySoulsLoad(Runnable runnable) {
if (fairySoulsLoaded == null) {
- LOGGER.error("Fairy Souls have not being initialized yet! Please ensure the Fairy Souls module is initialized before modules calling this method in SkyblockerMod#onInitializeClient. This error can be safely ignore in a test environment.");
+ LOGGER.error("[Skyblocker] Fairy Souls have not being initialized yet! Please ensure the Fairy Souls module is initialized before modules calling this method in SkyblockerMod#onInitializeClient. This error can be safely ignore in a test environment.");
return CompletableFuture.completedFuture(null);
}
return fairySoulsLoaded.thenRunAsync(runnable);
@@ -79,7 +79,7 @@ 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 = foundFairiesForLocationJson.getKey();
+ String profile = foundFairiesForProfileJson.getKey();
Map<BlockPos, ProfileAwareWaypoint> fairiesForLocation = fairySouls.get(profile);
for (JsonElement foundFairy : foundFairiesForLocationJson.getValue().getAsJsonArray().asList()) {
fairiesForLocation.get(PosUtils.parsePosString(foundFairy.getAsString())).setFound(profile);