From 02910648df3f49abeef2b71aa688415a807ea964 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 25 Sep 2023 19:45:40 +0200 Subject: Fixed item rarity not detecting for shiny items. --- src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt index a9e6bc771..58370bc80 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt @@ -53,8 +53,9 @@ enum class LorenzRarity(val color: LorenzColor, val id: Int) { fun readItemRarity(itemStack: ItemStack): LorenzRarity? { for (line in itemStack.getLore()) { + val string = line.replace("SHINY ", "") for (rarity in LorenzRarity.entries) { - if (line.startsWith(rarity.normalName) || line.startsWith(rarity.recombName)) { + if (string.startsWith(rarity.normalName) || string.startsWith(rarity.recombName)) { return rarity } } -- cgit