From 8b2db58f5d10948eebc8d0af4b70fee725590238 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Wed, 2 Oct 2024 04:01:50 +1000 Subject: Fix: Item trackers saying removed item name from item name (#2620) --- .../java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt | 6 +++--- 1 file changed, 3 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 3295880b9..e30395a00 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt @@ -119,9 +119,9 @@ class SkyHanniItemTracker( val newDrop = itemProfit.lastTimeUpdated.passedSince() < 10.seconds && config.showRecentDrops val numberColor = if (newDrop) "§a§l" else "§7" - val name = cleanName.removeColor(keepFormatting = true).replace("§r", "") + val formattedName = cleanName.removeColor(keepFormatting = true).replace("§r", "") var displayName = if (hidden) { - "§8§m$name" + "§8§m$formattedName" } else cleanName displayName = " $numberColor${displayAmount.addSeparators()}x $displayName§7: §6$priceFormat" @@ -152,7 +152,7 @@ class SkyHanniItemTracker( }, ) else Renderable.string(displayName) - lists.add(renderable.toSearchable(name)) + lists.add(renderable.toSearchable(formattedName)) } if (hiddenItemTexts.size > 0) { val text = Renderable.hoverTips(" §7${hiddenItemTexts.size} cheap items are hidden.", hiddenItemTexts).toSearchable() -- cgit