diff options
author | Luna <me@lunya.dev> | 2024-09-16 10:42:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 10:42:40 +0200 |
commit | 0a49e3eb55f8804d6716fa8dd1239c502682726f (patch) | |
tree | f6ee6dc50330472f99bd83c0e0b4797e4e057943 /src/main/java/at/hannibal2 | |
parent | b8f4b63f6efdef2cb189d6094b5f5bad17b8a80a (diff) | |
download | skyhanni-0a49e3eb55f8804d6716fa8dd1239c502682726f.tar.gz skyhanni-0a49e3eb55f8804d6716fa8dd1239c502682726f.tar.bz2 skyhanni-0a49e3eb55f8804d6716fa8dd1239c502682726f.zip |
Fix: Old mayor perks not being marked as inactive (#2524)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/Mayors.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt b/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt index 78647944c..335648dc5 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/Mayors.kt @@ -146,6 +146,7 @@ enum class Mayor( fun Mayor.addPerks(perks: List<Perk>) { perks.forEach { it.isActive = false } + activePerks.forEach { it.isActive = false } activePerks.clear() for (perk in perks.filter { perks.contains(it) }) { perk.isActive = true |