aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorSerhan <serhanduzce@gmail.com>2023-09-28 10:27:52 +0300
committerGitHub <noreply@github.com>2023-09-28 09:27:52 +0200
commit8477760bfe6bf004ad553396b4a1b6786ceb1127 (patch)
treeb9c8b342b90b7f3f42bdf190ea476a863fb8ea94 /src/main/java/at
parent6f0c913d60972fe9faab8f34af63aedc7615e77b (diff)
downloadskyhanni-8477760bfe6bf004ad553396b4a1b6786ceb1127.tar.gz
skyhanni-8477760bfe6bf004ad553396b4a1b6786ceb1127.tar.bz2
skyhanni-8477760bfe6bf004ad553396b4a1b6786ceb1127.zip
Fix: Pitchin' modifier not matches with constants (#512)
Fixed reforge stone Pitchin' Koi not detected in estimated item value. #512
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt3
1 files changed, 2 insertions, 1 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 626af54de..fc0a315da 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
@@ -287,7 +287,8 @@ object EstimatedItemValue {
}
private fun addReforgeStone(stack: ItemStack, list: MutableList<String>): Double {
- val rawReforgeName = stack.getReforgeName() ?: return 0.0
+ 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