aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-02 09:52:39 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-02 09:52:39 +0200
commit60948ae7f9b11f4c6e18c0defad2feccf5454486 (patch)
treeea4bbc80c61d9fb9ddab344719ad6e3b8645ed7e /src
parent51815be4736bdbc54974b0e992b212a00ff4d19a (diff)
downloadskyhanni-60948ae7f9b11f4c6e18c0defad2feccf5454486.tar.gz
skyhanni-60948ae7f9b11f4c6e18c0defad2feccf5454486.tar.bz2
skyhanni-60948ae7f9b11f4c6e18c0defad2feccf5454486.zip
improved readability
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
index e31eeaecb..d8aa6e166 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
@@ -243,11 +243,12 @@ class DungeonFinderFeatures {
group("className")
}
}
- if ((memberLevels.any {
- (it ?: Integer.MAX_VALUE) <= config.markBelowClassLevel
- }) && config.markBelowClassLevel != 0) {
- map[slot] = LorenzColor.YELLOW
- continue
+ if (config.markBelowClassLevel != 0) {
+ val hasLowLevelMembers = memberLevels.any { (it ?: Integer.MAX_VALUE) <= config.markBelowClassLevel }
+ if (hasLowLevelMembers) {
+ map[slot] = LorenzColor.YELLOW
+ continue
+ }
}
if (config.markMissingClass && memberClasses.none { it == selectedClass }) {