From 37e7fce962d4e782fd0756ee9e87e3f888bf56f8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 29 Aug 2023 20:42:45 +0200 Subject: Fixed estimated item value doesn't detect master stars in ah. --- src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt index d092774af..c87941766 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt @@ -43,7 +43,7 @@ object SkyBlockItemModifierUtils { getAttributeInt("upgrade_level") ?: getAttributeInt("dungeon_item_level") } else null - private fun ItemStack.isDungeonItem(): Boolean = getLore().lastOrNull()?.contains("DUNGEON") == true + private fun ItemStack.isDungeonItem() = getLore().any { it.contains("DUNGEON ") } fun ItemStack.getPetExp() = getPetInfo()?.get("exp")?.asDouble -- cgit