aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 00:58:04 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 00:58:04 +0200
commite068369777bc96cffef1eb382a94d8999787aa1b (patch)
treecf5c10e4a958b9a513e96b6cff15a549f1a88f19 /src/main/java
parent522ccba500b568c288b8eeabf959d2513e843128 (diff)
downloadskyhanni-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/main/java')
-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