aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-04 04:16:22 +1000
committerGitHub <noreply@github.com>2024-06-03 20:16:22 +0200
commitaa66334dba2c2c086b94eab1767abd4765e006f7 (patch)
tree42c9cc1d76f1d331a42c0bee2e55830168e6f85a /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
parentfde5544ca7a49f8315318a249607769aee87661c (diff)
downloadskyhanni-aa66334dba2c2c086b94eab1767abd4765e006f7.tar.gz
skyhanni-aa66334dba2c2c086b94eab1767abd4765e006f7.tar.bz2
skyhanni-aa66334dba2c2c086b94eab1767abd4765e006f7.zip
Fix: Config resetting on wrong value (#1979)
Co-authored-by: Brady <brady@thatgravyboat.tech>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index b3d92e68f..297a40585 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -15,6 +15,8 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.NumberUtil.isInt
import at.hannibal2.skyhanni.utils.PrimitiveItemStack.Companion.makePrimitiveStack
+import at.hannibal2.skyhanni.utils.json.BaseGsonBuilder
+import at.hannibal2.skyhanni.utils.json.fromJson
import com.google.gson.JsonObject
import com.google.gson.JsonPrimitive
import com.google.gson.TypeAdapter
@@ -51,7 +53,7 @@ object NEUItems {
private val ingredientsCache = mutableMapOf<NeuRecipe, Set<Ingredient>>()
private val hypixelApiGson by lazy {
- ConfigManager.createBaseGsonBuilder()
+ BaseGsonBuilder.gson()
.registerTypeAdapter(HypixelApiTrophyFish::class.java, object : TypeAdapter<HypixelApiTrophyFish>() {
override fun write(out: JsonWriter, value: HypixelApiTrophyFish) {}