diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-08-23 11:14:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 11:14:20 +0200 |
commit | 49a7b34b2dba63ac18dc309a5d157dba07ab4133 (patch) | |
tree | 5027849b2b17673c617b14736a0cb049c1725346 /src/main/java/at/hannibal2/skyhanni/data/jsonobjects | |
parent | 67060aeab991ebb18c3bba19adfa66c09e1acdcd (diff) | |
download | skyhanni-49a7b34b2dba63ac18dc309a5d157dba07ab4133.tar.gz skyhanni-49a7b34b2dba63ac18dc309a5d157dba07ab4133.tar.bz2 skyhanni-49a7b34b2dba63ac18dc309a5d157dba07ab4133.zip |
Fix: MayorAPI not working without Ministers (#2389)
Co-authored-by: Luna <luna@alexia.lol>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/jsonobjects')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/jsonobjects/other/MayorJson.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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 912a6f8c6..272ed5591 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 @@ -11,7 +11,9 @@ data class MayorInfo( @Expose val key: String, @Expose val name: String, @Expose val perks: List<MayorPerk>, - @Expose val minister: Minister, + // Ministers won't exist, + // when the current mayor is a special mayor + @Expose val minister: Minister?, @Expose val election: MayorElection, ) |