aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-23 21:47:02 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-23 21:47:02 -0500
commitc56059b6c9d28d17d82de090c5a0b9d9382cb82c (patch)
treeaa1f6b2c4798502c6f2ccafff788eb04f17c8379 /src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt
parentc36dd88ff83ff09d5941d6772b5eefff0cd10665 (diff)
downloadDulkirMod-Fabric-c56059b6c9d28d17d82de090c5a0b9d9382cb82c.tar.gz
DulkirMod-Fabric-c56059b6c9d28d17d82de090c5a0b9d9382cb82c.tar.bz2
DulkirMod-Fabric-c56059b6c9d28d17d82de090c5a0b9d9382cb82c.zip
Chat stacking with lots of refactor
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt b/src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt
index 4970ba8..b5397b5 100644
--- a/src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt
+++ b/src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt
@@ -28,12 +28,12 @@ object ActionBarUtil {
val sb = StringBuilder()
var stackFlag = false
event.message.formattedString().split(splitRegex).forEach {
- healthRegex.matchEntire(TextUtils.stripColorCodes(it)) ?.let { result ->
+ healthRegex.matchEntire(TextUtils.stripColorCodes(it))?.let { result ->
healthInt = result.groupValues[1].replace(",", "").toInt()
healthStr = it
return@forEach
}
- defRegex.matchEntire(TextUtils.stripColorCodes(it)) ?.let { result ->
+ defRegex.matchEntire(TextUtils.stripColorCodes(it))?.let { result ->
defInt = result.groupValues[1].replace(",", "").toInt()
defStr = it.replace(" Defense", "")
return@forEach