aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/repo
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-12-29 18:47:47 +0100
committerLinnea Gräf <nea@nea.moe>2023-12-29 18:47:47 +0100
commit745688773823d79c6033ccd6b008c690abf7d131 (patch)
treec8e9b2b086d8b374be92904493944c9815fbcabd /src/main/kotlin/moe/nea/firmament/repo
parent51c9df52fca0332d34706d06f09847ddb1ac2dd5 (diff)
downloadFirmament-745688773823d79c6033ccd6b008c690abf7d131.tar.gz
Firmament-745688773823d79c6033ccd6b008c690abf7d131.tar.bz2
Firmament-745688773823d79c6033ccd6b008c690abf7d131.zip
Fix pet numbers on repo itemstacks
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/repo')
-rw-r--r--src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt b/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt
index cad1a0f..e6f4755 100644
--- a/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt
+++ b/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt
@@ -142,9 +142,9 @@ object RepoManager {
return null
}
val intIndex = rarityIndex.toInt()
- if (intIndex !in rarityIndex.indices) return null
+ if (intIndex !in Rarity.values().indices) return null
if (petId !in neuRepo.constants.petNumbers) return null
- return PetData(Rarity.values()[intIndex], petId, 0.0)
+ return PetData(Rarity.values()[intIndex], petId, 0.0, true)
}
}