From ea8addc453eed5d70cf33a8b42c37cf7b4c067c8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 24 Sep 2023 11:29:32 +0200 Subject: Fixed item rarity problems with very special. --- src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt index 4889bdd04..a9e6bc771 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt @@ -20,8 +20,9 @@ enum class LorenzRarity(val color: LorenzColor, val id: Int) { ; private val chatColorCode by lazy { color.getChatColor() } - private val normalName by lazy { "$chatColorCode§l$name" } - private val recombName by lazy { "$chatColorCode§l§ka§r $chatColorCode§l$chatColorCode§l$name" } + private val rawName by lazy { name.replace("_", " ") } + private val normalName by lazy { "$chatColorCode§l$rawName" } + private val recombName by lazy { "$chatColorCode§l§ka§r $chatColorCode§l$chatColorCode§l$rawName" } //§d§l§ka§r §d§l§d§lMYTHIC -- cgit