aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
index f44893c2a..d39c8e757 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -38,11 +38,8 @@ object SkyBlockItemModifierUtils {
fun ItemStack.getManaDisintegrators() = getAttributeInt("mana_disintegrator_count")
- fun ItemStack.getDungeonStarCount() = getAttributeInt("dungeon_item_level")?.let {
- getAttributeInt("upgrade_level")?.let { upgradeLevel ->
- return it.coerceAtLeast(upgradeLevel)
- } ?: it
- }
+ fun ItemStack.getDungeonStarCount() =
+ getAttributeInt("upgrade_level") ?: getAttributeInt("dungeon_item_level")
fun ItemStack.getPetCandyUsed(): Int? {
val data = cachedData