aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt b/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt
index d26c999bd..eec0dd781 100644
--- a/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/fishing/SeaCreatureManager.kt
@@ -16,13 +16,13 @@ class SeaCreatureManager {
for (variant in data.entrySet().map { it.value.asJsonObject }) {
val chatColor = variant["chat_color"].asString
- for ((displayName, v) in variant["sea_creatures"].asJsonObject.entrySet()) {
- val value = v.asJsonObject
- val chatMessage = value["chat_message"].asString
- val fishingExperience = value["fishing_experience"].asInt
+ for ((displayName, value) in variant["sea_creatures"].asJsonObject.entrySet()) {
+ val seaCreature = value.asJsonObject
+ val chatMessage = seaCreature["chat_message"].asString
+ val fishingExperience = seaCreature["fishing_experience"].asInt
- val rare = if (value.has("rare")) {
- value["rare"].asBoolean
+ val rare = if (seaCreature.has("rare")) {
+ seaCreature["rare"].asBoolean
} else false
seaCreatureMap[chatMessage] = SeaCreature(displayName, fishingExperience, chatColor, rare)