Skip to content

Commit

Permalink
2.11.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterpicker committed Oct 11, 2024
1 parent 8001a64 commit a932959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

group = "gg.generations"
version = "2.11.16"
version = "2.11.17"

java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a932959

Please sign in to comment.