diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-22 16:58:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-22 16:58:25 +0200 |
commit | d9ccf2acda2812906286f6a338398a2f92b273dc (patch) | |
tree | 94f19def9ea331d4b5c6b6fc029bde021cb5762a /src/main/java/at/hannibal2/skyhanni | |
parent | e81c69a7455e5dd30cb12abcd3ba0abc3ad53594 (diff) | |
download | skyhanni-d9ccf2acda2812906286f6a338398a2f92b273dc.tar.gz skyhanni-d9ccf2acda2812906286f6a338398a2f92b273dc.tar.bz2 skyhanni-d9ccf2acda2812906286f6a338398a2f92b273dc.zip |
Fixed Pocket Sack-In-A-Sack Replace In Lore
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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" |