From 44776af1efdc2aa3237b960a79f86c6bf185ee20 Mon Sep 17 00:00:00 2001 From: Stephen Oz <31784207+SteptimusHeap@users.noreply.github.com> Date: Tue, 5 Sep 2023 17:14:23 -0400 Subject: Update DamageNumbers.kt adds the heart to regex to prevent a crash --- src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt b/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt index 68b16cf..c43c770 100644 --- a/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt +++ b/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt @@ -10,7 +10,7 @@ import net.minecraft.text.Text object DamageNumbers { private val nonCritFormat = """^(\d{1,3}(,\d{3})*|\d+)$""".toRegex() - private val trimPattern = "[✧,]".toRegex() + private val trimPattern = "[✧,❤]".toRegex() private val critColorList = listOf( "§e", "§f", "§c", "§6" ) @@ -76,4 +76,4 @@ object DamageNumbers { } return sb.toString() } -} \ No newline at end of file +} -- cgit