From 8477760bfe6bf004ad553396b4a1b6786ceb1127 Mon Sep 17 00:00:00 2001 From: Serhan Date: Thu, 28 Sep 2023 10:27:52 +0300 Subject: Fix: Pitchin' modifier not matches with constants (#512) Fixed reforge stone Pitchin' Koi not detected in estimated item value. #512 --- .../at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') 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): 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 -- cgit