aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/util
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-04 16:01:51 +0200
committernea <nea@nea.moe>2023-05-04 16:01:51 +0200
commit67c02be99e44b81d14174bc02c46869271eeb71f (patch)
treefac393845cbd45f981470245c82192e2009ac3ba /src/main/kotlin/moe/nea/notenoughupdates/util
parent60ecfedf46e94344e6439a3a90c4c74ee65eeb2e (diff)
downloadfirmament-67c02be99e44b81d14174bc02c46869271eeb71f.tar.gz
firmament-67c02be99e44b81d14174bc02c46869271eeb71f.tar.bz2
firmament-67c02be99e44b81d14174bc02c46869271eeb71f.zip
Fix pet skyblock id
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/util')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/util/SkyblockId.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/util/SkyblockId.kt b/src/main/kotlin/moe/nea/notenoughupdates/util/SkyblockId.kt
index cc2d813..7c6c391 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/util/SkyblockId.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/util/SkyblockId.kt
@@ -21,7 +21,7 @@ data class HypixelPetInfo(
val type: String,
val tier: Rarity,
) {
- val skyblockId get() = SkyblockId("${type.uppercase()};${tier}")
+ val skyblockId get() = SkyblockId("${type.uppercase()};${tier.ordinal}")
}
private val jsonparser = Json { ignoreUnknownKeys = true }