From 01cfccbb9089e04bb61c270fa279bf93e2e679c0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 12 Apr 2023 17:15:29 +0200 Subject: Small stuff --- src/main/java/at/hannibal2/skyhanni/config/features/Mobs.java | 2 +- src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 2 +- src/main/java/at/hannibal2/skyhanni/data/IslandType.kt | 1 + src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Mobs.java b/src/main/java/at/hannibal2/skyhanni/config/features/Mobs.java index d5a4f3057..5ee9d5e58 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Mobs.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Mobs.java @@ -74,7 +74,7 @@ public class Mobs { public boolean areaBossRespawnTimer = false; @Expose - @ConfigOption(name = "Enderman Teleportation Hider", desc = "Stops the Enderman Teleportation animation.") + @ConfigOption(name = "Enderman TP Hider", desc = "Stops the Enderman Teleportation animation.") @ConfigEditorBoolean public boolean endermanTeleportationHider = true; diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 7f162fa94..6a9bc3d2b 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -148,7 +148,7 @@ class HypixelData { if (skyBlockIsland != islandType) { IslandChangeEvent(islandType, skyBlockIsland).postAndCatch() if (islandType == IslandType.UNKNOWN) { - println("Unknown island detected: '$newIsland'") + LorenzUtils.debug("Unknown island detected: '$newIsland'") loggerIslandChange.log("Unknown: '$newIsland'") } else { loggerIslandChange.log(islandType.name) diff --git a/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt b/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt index aa6a02b13..8b9c4dc3e 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt @@ -17,6 +17,7 @@ enum class IslandType(val displayName: String, val apiName: String = "null") { GOLD_MINES("Gold Mine", "gold_mine"),//TODO confirm GARDEN("Garden"), GARDEN_GUEST("Garden Guest"), + SPIDER_DEN("Spider's Den"), NONE(""), UNKNOWN("???"), diff --git a/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt b/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt index ff0c7a1ea..93e507826 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt @@ -58,6 +58,11 @@ object APIUtil { LorenzUtils.error("[SkyHanni] JsonSyntaxException at getJSONResponse!") println("result: '$retSrc'") } + if (e.message?.contains("Use JsonReader.setLenient(true)") == true) { + println("MalformedJsonException: Use JsonReader.setLenient(true)") + println(" - getJSONResponse: '$urlString'") + LorenzUtils.debug("MalformedJsonException: Use JsonReader.setLenient(true)") + } e.printStackTrace() } } -- cgit