diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 7 |
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 |