aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/tracker
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 11:56:24 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-09 11:56:24 +0100
commit533bd580df0b689e4a0c67d5a83f2aab2bf9eb91 (patch)
tree19360446ebb18f5a743f49bec13781bc4f9ad7ff /src/main/java/at/hannibal2/skyhanni/utils/tracker
parent19c5cd978a55ecb7bc5f09230e57bbd82162b2fd (diff)
downloadskyhanni-533bd580df0b689e4a0c67d5a83f2aab2bf9eb91.tar.gz
skyhanni-533bd580df0b689e4a0c67d5a83f2aab2bf9eb91.tar.bz2
skyhanni-533bd580df0b689e4a0c67d5a83f2aab2bf9eb91.zip
Fixed slayer profit tracker display and price problems with Wisp's Ice Flavoured Water Potion.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/tracker')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
index 2ca14d2cb..da238d01d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt
@@ -3,7 +3,7 @@ package at.hannibal2.skyhanni.utils.tracker
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.Storage
import at.hannibal2.skyhanni.test.PriceSource
-import at.hannibal2.skyhanni.utils.ItemUtils.nameWithEnchantment
+import at.hannibal2.skyhanni.utils.ItemUtils.getNameWithEnchantment
import at.hannibal2.skyhanni.utils.KeyboardManager
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList
@@ -11,7 +11,6 @@ import at.hannibal2.skyhanni.utils.LorenzUtils.addSelector
import at.hannibal2.skyhanni.utils.LorenzUtils.sortedDesc
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
-import at.hannibal2.skyhanni.utils.NEUItems.getItemStack
import at.hannibal2.skyhanni.utils.NumberUtil
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
@@ -79,7 +78,7 @@ class SkyHanniItemTracker<Data : ItemTrackerData>(
val cleanName = if (internalName == SKYBLOCK_COIN) {
data.getCoinName(itemProfit)
} else {
- internalName.getItemStack().nameWithEnchantment ?: error("no name for $internalName")
+ internalName.getNameWithEnchantment()
}
val priceFormat = NumberUtil.format(price)