From e3f985c27994a5118a0d75dbd7b0d21e790ad7cd Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 10 Jun 2023 18:03:31 +0200 Subject: Fixed bite rune not getting formatted correctly --- .../at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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" -- cgit