diff options
author | Luna <luna@alexia.lol> | 2024-08-15 23:12:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 23:12:08 +0200 |
commit | 0077255f5b8a3c4cfd7731cb759430ae01b146c0 (patch) | |
tree | 7ed5073ae8c8992b6505d6032f4288ae5b3958d2 /src/main/java/at | |
parent | 8edaca534b068b3ada4b81a6d0eda13b62d226c0 (diff) | |
download | skyhanni-0077255f5b8a3c4cfd7731cb759430ae01b146c0.tar.gz skyhanni-0077255f5b8a3c4cfd7731cb759430ae01b146c0.tar.bz2 skyhanni-0077255f5b8a3c4cfd7731cb759430ae01b146c0.zip |
Fix: Minister Perk (#2343)
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/MayorJson.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt index 53539adb4..555fdb7f8 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt @@ -218,7 +218,7 @@ object MayorAPI { val currentMayorName = data.mayor.name if (lastMayor?.name != currentMayorName) { currentMayor = setAssumeMayorJson(currentMayorName, data.mayor.perks) - currentMinister = setAssumeMayorJson(data.mayor.minister.name, data.mayor.minister.perk) + currentMinister = setAssumeMayorJson(data.mayor.minister.name, listOf(data.mayor.minister.perk)) } } } diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/MayorJson.kt b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/MayorJson.kt index f54c7daf4..912a6f8c6 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/MayorJson.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/MayorJson.kt @@ -30,7 +30,7 @@ data class MayorCandidate( data class Minister( @Expose val key: String, @Expose val name: String, - @Expose val perk: List<MayorPerk>, + @Expose val perk: MayorPerk, ) data class MayorPerk( |