From 0e58556644304d5404cb32b69fc7f79ea1f8298e Mon Sep 17 00:00:00 2001 From: tako <74718793+TakoTheDev@users.noreply.github.com> Date: Sun, 6 Oct 2024 21:07:51 +0200 Subject: [PATCH] fix: Croseus Chest Profit, STARRED is on the item id, not the display name (#515) Co-authored-by: songreaver <87545636+kemmisch@users.noreply.github.com> --- .../skytilsmod/features/impl/dungeons/DungeonChestProfit.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt index 3884a2879..dacb07eaa 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt @@ -170,7 +170,7 @@ object DungeonChestProfit { } else { val unformatted = name.stripControlCodes().replace("Shiny ", "") ItemFeatures.itemIdToNameLookup.entries.find { - it.value == unformatted && !it.value.contains("STARRED") + it.value == unformatted && !it.key.contains("STARRED") }?.key } }