aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-10-02 04:01:50 +1000
committerGitHub <noreply@github.com>2024-10-01 20:01:50 +0200
commit8b2db58f5d10948eebc8d0af4b70fee725590238 (patch)
tree4c11e0cd5d79f967dc8cb513018f100763c5998d
parent22dfa1ec9977a9440a23f7f7efbf79da81b79e6b (diff)
downloadskyhanni-8b2db58f5d10948eebc8d0af4b70fee725590238.tar.gz
skyhanni-8b2db58f5d10948eebc8d0af4b70fee725590238.tar.bz2
skyhanni-8b2db58f5d10948eebc8d0af4b70fee725590238.zip
Fix: Item trackers saying removed item name from item name (#2620)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt6
1 files 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<Data : ItemTrackerData>(
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<Data : ItemTrackerData>(
},
) 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()