diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 11:49:50 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 11:49:50 +0200 |
| commit | 3bcd5b3a8afa5b322d75af1b82681fd7b1e494e5 (patch) | |
| tree | ba3fc5108a01423ed96ea576aa32cb9de091ba9b /src/main/java/at/hannibal2/skyhanni/features/bazaar | |
| parent | 8d12c5259ff12e25f74194db19731ecc10280e47 (diff) | |
| download | skyhanni-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/bazaar')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt | 5 |
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())) { |
