diff options
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/ActionBarUtil.kt | 4 |
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 |