diff options
author | Stephen Oz <31784207+SteptimusHeap@users.noreply.github.com> | 2023-09-05 17:14:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 17:14:23 -0400 |
commit | 44776af1efdc2aa3237b960a79f86c6bf185ee20 (patch) | |
tree | 0e787ec9d11e647cc43574de5dcae558ecf0c130 /src/main/kotlin | |
parent | 0516a4be0c93d6a82dc23ba074a5ee6c6b8c181f (diff) | |
download | DulkirMod-Fabric-44776af1efdc2aa3237b960a79f86c6bf185ee20.tar.gz DulkirMod-Fabric-44776af1efdc2aa3237b960a79f86c6bf185ee20.tar.bz2 DulkirMod-Fabric-44776af1efdc2aa3237b960a79f86c6bf185ee20.zip |
Update DamageNumbers.kt
adds the heart to regex to prevent a crash
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt | 4 |
1 files 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 +} |