aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorronald <inglettronald@gmail.com>2023-07-29 15:31:56 -0500
committerronald <inglettronald@gmail.com>2023-07-29 15:31:56 -0500
commit4fdc7858ce3a480f983c3a12ff0a0627533e3c93 (patch)
treeb4a609a2c992e81a72051524d832eacda952967d /src/main
parentb4c6da5d3ca2629e15f41f5407fe120c3b919f2d (diff)
downloadDulkirMod-Fabric-4fdc7858ce3a480f983c3a12ff0a0627533e3c93.tar.gz
DulkirMod-Fabric-4fdc7858ce3a480f983c3a12ff0a0627533e3c93.tar.bz2
DulkirMod-Fabric-4fdc7858ce3a480f983c3a12ff0a0627533e3c93.zip
tiny optimization
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt b/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt
index 0f94a80..68b16cf 100644
--- a/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/filters/DamageNumbers.kt
@@ -25,6 +25,7 @@ object DamageNumbers {
val name = it.customName?.string ?: return@forEach
if (name matches nonCritFormat && DulkirConfig.configOptions.hideNonCrits) {
it.isCustomNameVisible = false
+ return@forEach
}
if (name.startsWith('✧')) {
if (DulkirConfig.configOptions.hideCrits) {