diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-07 00:58:04 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-07 00:58:04 +0200 |
commit | e068369777bc96cffef1eb382a94d8999787aa1b (patch) | |
tree | cf5c10e4a958b9a513e96b6cff15a549f1a88f19 /src | |
parent | 522ccba500b568c288b8eeabf959d2513e843128 (diff) | |
download | skyhanni-e068369777bc96cffef1eb382a94d8999787aa1b.tar.gz skyhanni-e068369777bc96cffef1eb382a94d8999787aa1b.tar.bz2 skyhanni-e068369777bc96cffef1eb382a94d8999787aa1b.zip |
Fixed master star detection in estimate item value broken for some times.
Diffstat (limited to 'src')
-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 |