summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 11:49:50 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 11:49:50 +0200
commit3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5 (patch)
treeba3fc5108a01423ed96ea576aa32cb9de091ba9b /src/main/java/at/hannibal2/skyhanni/features
parent8d12c5259ff12e25f74194db19731ecc10280e47 (diff)
downloadskyhanni-3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5.tar.gz
skyhanni-3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5.tar.bz2
skyhanni-3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5.zip
bringing the future of NEUInternalName a bit closer to reality
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt
index 043e8c3ac..146f94c90 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt
@@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUItems
+import at.hannibal2.skyhanni.utils.NEUItems.getPrice
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import kotlinx.coroutines.launch
import kotlin.concurrent.fixedRateTimer
@@ -62,8 +63,8 @@ class BazaarDataHolder {
return null
}
val displayName = stack.name!!.removeColor()
- val sellPrice = NEUItems.getPrice(internalName, true)
- val buyPrice = NEUItems.getPrice(internalName, false)
+ val sellPrice = internalName.getPrice(true)
+ val buyPrice = internalName.getPrice(false)
val npcPrice = npcPrices[internalName].let {
if (it == null) {
if (!ignoreNoNpcPrice(internalName.asString())) {