aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
index 3d13e04d8..f340ff0d8 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
@@ -234,14 +234,13 @@ object HoppityEggsManager {
}
private fun checkWarn() {
+ val allEggsRemaining = HoppityEggType.allEggsRemaining()
if (!warningActive) {
- warningActive = !HoppityEggType.allEggsRemaining()
+ warningActive = !allEggsRemaining
}
- if (warningActive) {
- if (HoppityEggType.allEggsRemaining()) {
- warn()
- }
+ if (warningActive && allEggsRemaining) {
+ warn()
}
}