aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-11 18:32:43 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-11 18:32:43 +0200
commit7087d65d9e2075a4977ca02e1751638364399773 (patch)
treecf4dea636c19dd9da73e5ccdebf80e2ac4f4ff4f /src/main/java/at/hannibal2/skyhanni
parent69f2a18218f54389fe19eabb8df89a00f0eb5671 (diff)
downloadskyhanni-7087d65d9e2075a4977ca02e1751638364399773.tar.gz
skyhanni-7087d65d9e2075a4977ca02e1751638364399773.tar.bz2
skyhanni-7087d65d9e2075a4977ca02e1751638364399773.zip
Fixed some bazaar items in best sell method.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt3
1 files changed, 2 insertions, 1 deletions
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