aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormartimavocado <39881008+martimavocado@users.noreply.github.com>2024-10-11 17:46:38 +0100
committerGitHub <noreply@github.com>2024-10-11 18:46:38 +0200
commitf448c9095d914ef49bee400f53f291e537a5013d (patch)
treeaf1ab91edf1fe67eb44a7328cc3ccee565eca6c0 /src
parent7ee4d351c790043324863205a89a74361d3a2bed (diff)
downloadskyhanni-f448c9095d914ef49bee400f53f291e537a5013d.tar.gz
skyhanni-f448c9095d914ef49bee400f53f291e537a5013d.tar.bz2
skyhanni-f448c9095d914ef49bee400f53f291e537a5013d.zip
Fix: Remove color codes from hoppity eggs share message (#2711)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityAPI.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityAPI.kt
index 593326c67..5e1910d0d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityAPI.kt
@@ -29,6 +29,7 @@ import at.hannibal2.skyhanni.utils.RegexUtils.matchMatcher
import at.hannibal2.skyhanni.utils.RegexUtils.matches
import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getMinecraftId
import at.hannibal2.skyhanni.utils.SkyblockSeason
+import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import net.minecraftforge.fml.common.eventhandler.EventPriority
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -167,7 +168,8 @@ object HoppityAPI {
eggFoundPattern.matchMatcher(event.message) {
resetRabbitData()
lastMeal = getEggType(event)
- lastMeal?.let { EggFoundEvent(it, note = groupOrNull("note")).post() }
+ val note = groupOrNull("note")?.removeColor()
+ lastMeal?.let { EggFoundEvent(it, note = note).post() }
attemptFireRabbitFound()
}