From a932959ccd9295af79a2f37f2df45e8962ef3a9a Mon Sep 17 00:00:00 2001 From: Waterpicker Date: Thu, 10 Oct 2024 20:58:56 -0500 Subject: [PATCH] 2.11.17 --- build.gradle.kts | 2 +- .../java/gg/generations/rarecandy/pokeutils/PixelAsset.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }