aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 20:42:45 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 20:42:45 +0200
commit37e7fce962d4e782fd0756ee9e87e3f888bf56f8 (patch)
treef0b201c156f5deeb33ca2fcc70409d621fc38cfb /src
parent5887b8bb26a50ec202e530d91b445f3d3a9f5263 (diff)
downloadskyhanni-37e7fce962d4e782fd0756ee9e87e3f888bf56f8.tar.gz
skyhanni-37e7fce962d4e782fd0756ee9e87e3f888bf56f8.tar.bz2
skyhanni-37e7fce962d4e782fd0756ee9e87e3f888bf56f8.zip
Fixed estimated item value doesn't detect master stars in ah.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt2
1 files changed, 1 insertions, 1 deletions
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