diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-11 15:13:50 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-11 15:13:50 +0100 |
commit | 74a3ac9c70238a7154637c9c2c01690ae9d538ab (patch) | |
tree | 64294e5e787248237527a737eb69ec3e771f6a08 /src/main/java/at/hannibal2/skyhanni/config | |
parent | a634e3326a484f2048259fb64cba623dbcde4370 (diff) | |
download | skyhanni-74a3ac9c70238a7154637c9c2c01690ae9d538ab.tar.gz skyhanni-74a3ac9c70238a7154637c9c2c01690ae9d538ab.tar.bz2 skyhanni-74a3ac9c70238a7154637c9c2c01690ae9d538ab.zip |
Added location fixes to repo.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt index 498b2f489..fd185996e 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.config import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.features.fishing.trophy.TrophyRarity import at.hannibal2.skyhanni.features.misc.update.UpdateManager import at.hannibal2.skyhanni.utils.LorenzLogger @@ -95,6 +96,15 @@ class ConfigManager { return LorenzRarity.valueOf(reader.nextString()) } }.nullSafe()) + .registerTypeAdapter(IslandType::class.java, object : TypeAdapter<IslandType>() { + override fun write(out: JsonWriter, value: IslandType) { + out.value(value.name) + } + + override fun read(reader: JsonReader): IslandType { + return IslandType.valueOf(reader.nextString()) + } + }.nullSafe()) .enableComplexMapKeySerialization() .create() } |