diff options
author | martimavocado <39881008+martimavocado@users.noreply.github.com> | 2024-10-11 17:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 18:46:38 +0200 |
commit | f448c9095d914ef49bee400f53f291e537a5013d (patch) | |
tree | af1ab91edf1fe67eb44a7328cc3ccee565eca6c0 /src | |
parent | 7ee4d351c790043324863205a89a74361d3a2bed (diff) | |
download | skyhanni-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.kt | 4 |
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() } |