From 745688773823d79c6033ccd6b008c690abf7d131 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 29 Dec 2023 18:47:47 +0100 Subject: Fix pet numbers on repo itemstacks --- src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/repo') 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) } } -- cgit