aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-22 17:26:56 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-22 17:26:56 +0200
commitc4acb66a4b6ab9498659613b5193a06044d3fd47 (patch)
tree64d53f3bb05ec76dcedc6d6799c7b47d241092c0 /src/main/java/at
parent0f5055bd42614db2dd28e1c9f80494f872a884ed (diff)
downloadskyhanni-c4acb66a4b6ab9498659613b5193a06044d3fd47.tar.gz
skyhanni-c4acb66a4b6ab9498659613b5193a06044d3fd47.tar.bz2
skyhanni-c4acb66a4b6ab9498659613b5193a06044d3fd47.zip
Fixed Pocket Sack-In-A-Sack Replace In Lore v2
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt5
1 files changed, 2 insertions, 3 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 17f248753..8507deb6e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt
@@ -7,14 +7,13 @@ 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
class PocketSackInASackDisplay {
private val config get() = SkyHanniMod.feature.misc.pocketSackInASack
- private val valPattern = "§5§o§7This sack is stitched with (?<number>.*)".toPattern()
+ private val valPattern = "§5§o§7This sack is stitched with (?<number>.*)§7.".toPattern()
@SubscribeEvent
fun onRenderItemOverlayPost(event: GuiRenderItemEvent.RenderOverlayEvent.GuiRenderItemPost) {
@@ -54,7 +53,7 @@ class PocketSackInASackDisplay {
val it = event.toolTip.listIterator()
for (line in it) {
valPattern.matchMatcher(line) {
- val replace = when (group("number").removeColor()) {
+ val replace = when (group("number")) {
"a" -> "§c1"
"two" -> "§62"
"three" -> "§a3"