aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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 }) {