diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-12 17:15:29 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-12 17:15:29 +0200 |
commit | 01cfccbb9089e04bb61c270fa279bf93e2e679c0 (patch) | |
tree | 59af7038d266746dbaee40bb85f9c03e41f5c941 | |
parent | a634de05add8e61aad17acd82d121e09afc92edc (diff) | |
download | skyhanni-01cfccbb9089e04bb61c270fa279bf93e2e679c0.tar.gz skyhanni-01cfccbb9089e04bb61c270fa279bf93e2e679c0.tar.bz2 skyhanni-01cfccbb9089e04bb61c270fa279bf93e2e679c0.zip |
Small stuff
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() } } |