aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 00f5117d6..b45f7edda 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@
### Fixes
- Fixed enchanted books in bazaar
- Fixed LorenzLogger printing output into console
+- Fixed best sell method not working for some bazaar items
## Version 0.7 - Dungeon and Colored Highlight
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt
index aea9a3981..25abe82e1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt
@@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils.round
import at.hannibal2.skyhanni.utils.NumberUtil.isInt
import at.hannibal2.skyhanni.utils.NumberUtil.toRoman
import at.hannibal2.skyhanni.utils.StringUtils.firstLetterUppercase
+import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import kotlin.concurrent.fixedRateTimer
internal class BazaarDataGrabber(private var bazaarMap: MutableMap<String, BazaarData>) {
@@ -25,7 +26,7 @@ internal class BazaarDataGrabber(private var bazaarMap: MutableMap<String, Bazaa
val jsonObject = element.asJsonObject
val name = jsonObject["name"].asString
val id = jsonObject["id"].asString
- itemNames[id] = name
+ itemNames[id] = name.removeColor()
}
currentlyUpdating = false
return true