From d9ccf2acda2812906286f6a338398a2f92b273dc Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:58:25 +0200 Subject: Fixed Pocket Sack-In-A-Sack Replace In Lore --- .../at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt index 721248658..17f248753 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt @@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.utils.ItemUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getAppliedPocketSackInASack import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher +import at.hannibal2.skyhanni.utils.StringUtils.removeColor import net.minecraft.client.renderer.GlStateManager import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -53,7 +54,7 @@ class PocketSackInASackDisplay { val it = event.toolTip.listIterator() for (line in it) { valPattern.matchMatcher(line) { - val replace = when (group("number")) { + val replace = when (group("number").removeColor()) { "a" -> "§c1" "two" -> "§62" "three" -> "§a3" -- cgit