diff --git a/build.gradle.kts b/build.gradle.kts index a67761c..feb3265 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,7 +11,7 @@ plugins { } group = "gg.generations" -version = "2.11.16" +version = "2.11.17" java.toolchain.languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/src/library/java/gg/generations/rarecandy/pokeutils/PixelAsset.java b/src/library/java/gg/generations/rarecandy/pokeutils/PixelAsset.java index f1b9995..631384f 100644 --- a/src/library/java/gg/generations/rarecandy/pokeutils/PixelAsset.java +++ b/src/library/java/gg/generations/rarecandy/pokeutils/PixelAsset.java @@ -60,7 +60,7 @@ public JsonElement apply(VariantDetails variantDetails, JsonSerializationContext public VariantDetails apply(JsonElement jsonElement, JsonDeserializationContext ctx) { var obj = jsonElement.getAsJsonObject(); var material = obj.has("material") ? obj.getAsJsonPrimitive("material").getAsString() : null; - var hide = obj.has("hide") ? obj.getAsJsonPrimitive("material").getAsBoolean() : null; + var hide = obj.has("hide") ? obj.getAsJsonPrimitive("hide").getAsBoolean() : null; Transform offset = obj.has("offset") ? ctx.deserialize(obj.get("offset"), Transform.class) : null; return new VariantDetails(material, hide, offset); }