diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-23 20:25:07 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-23 20:25:07 +0200 |
commit | acc90c5794be8457b98bfa0dadf52f19a079c996 (patch) | |
tree | 3eed407689aa3ec0d436af57ab376e670814ba70 /src/main/java | |
parent | 739a48d4679ce05c1f555a04fcdaa4e509d59d5d (diff) | |
download | skyhanni-acc90c5794be8457b98bfa0dadf52f19a079c996.tar.gz skyhanni-acc90c5794be8457b98bfa0dadf52f19a079c996.tar.bz2 skyhanni-acc90c5794be8457b98bfa0dadf52f19a079c996.zip |
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt | 9 |
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() } } |