From 0a49e3eb55f8804d6716fa8dd1239c502682726f Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 16 Sep 2024 10:42:40 +0200 Subject: Fix: Old mayor perks not being marked as inactive (#2524) --- src/main/java/at/hannibal2/skyhanni/data/Mayors.kt | 1 + 1 file changed, 1 insertion(+) 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) { perks.forEach { it.isActive = false } + activePerks.forEach { it.isActive = false } activePerks.clear() for (perk in perks.filter { perks.contains(it) }) { perk.isActive = true -- cgit