diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index fc0a315da..bc5380f81 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -288,7 +288,6 @@ object EstimatedItemValue { private fun addReforgeStone(stack: ItemStack, list: MutableList<String>): Double { var rawReforgeName = stack.getReforgeName() ?: return 0.0 - if (rawReforgeName.equals("pitchin")) rawReforgeName = "pitchin_koi" // exception for ((rawInternalName, values) in Constants.REFORGESTONES.entrySet()) { val stoneJson = values.asJsonObject diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt index 0dcc728c2..0a3478236 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt @@ -144,7 +144,9 @@ object SkyBlockItemModifierUtils { }.sortedBy { it.first } } - fun ItemStack.getReforgeName() = getAttributeString("modifier") + fun ItemStack.getReforgeName() = getAttributeString("modifier")?.let { + if (it == "pitchin") "pitchin_koi" else it + } fun ItemStack.isRecombobulated() = getAttributeBoolean("rarity_upgrades") |