aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt
index cba190cf4..2933017d1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt
@@ -152,6 +152,9 @@ class SlayerItemProfitTracker {
val priceFormat = NumberUtil.format(price)
val hidden = itemProfit.hidden
if (hidden) {
+ while (name.startsWith("§f")) {
+ name = name.substring(2)
+ }
name = StringUtils.addFormat(name, "§m")
}
val text = " §7${amount.addSeparators()}x $name§7: §6$priceFormat"