diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-10 18:03:31 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-10 18:03:31 +0200 |
commit | e3f985c27994a5118a0d75dbd7b0d21e790ad7cd (patch) | |
tree | 17ce3e388eadeb7203cc4f62d3ad6a55cc031496 /src/main/java/at/hannibal2/skyhanni | |
parent | c5958a0a5b3e0766f67696d0a179847379f87a97 (diff) | |
download | skyhanni-e3f985c27994a5118a0d75dbd7b0d21e790ad7cd.tar.gz skyhanni-e3f985c27994a5118a0d75dbd7b0d21e790ad7cd.tar.bz2 skyhanni-e3f985c27994a5118a0d75dbd7b0d21e790ad7cd.zip |
Fixed bite rune not getting formatted correctly
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt | 3 |
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" |