aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-07 13:07:53 +1000
committerGitHub <noreply@github.com>2024-06-07 13:07:53 +1000
commit5882e9178278c942d4ee03eea58e3d5ef6af357b (patch)
tree25e638125317e65ea24e3dd21ffb82010c4a281a /src/main/java/at/hannibal2/skyhanni/utils
parent239579b732e95562279af643527ee30b0858ee12 (diff)
downloadskyhanni-5882e9178278c942d4ee03eea58e3d5ef6af357b.tar.gz
skyhanni-5882e9178278c942d4ee03eea58e3d5ef6af357b.tar.bz2
skyhanni-5882e9178278c942d4ee03eea58e3d5ef6af357b.zip
Backend: Remove deprecated BazaarData values (#1987)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
index 51a0e4f65..beceaf8f9 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniTracker.kt
@@ -41,8 +41,8 @@ open class SkyHanniTracker<Data : TrackerData>(
private val storedTrackers get() = SkyHanniMod.feature.storage.trackerDisplayModes
fun getPricePer(name: NEUInternalName) = when (config.priceFrom) {
- PriceFromEntry.INSTANT_SELL -> name.getBazaarData()?.sellPrice ?: name.getPriceOrNull() ?: 0.0
- PriceFromEntry.SELL_OFFER -> name.getBazaarData()?.buyPrice ?: name.getPriceOrNull() ?: 0.0
+ PriceFromEntry.INSTANT_SELL -> name.getBazaarData()?.instantBuyPrice ?: name.getPriceOrNull() ?: 0.0
+ PriceFromEntry.SELL_OFFER -> name.getBazaarData()?.sellOfferPrice ?: name.getPriceOrNull() ?: 0.0
else -> name.getNpcPriceOrNull() ?: 0.0
}