From 30b218714a9a224011c30af1f8155b618bd901de Mon Sep 17 00:00:00 2001 From: KosmX Date: Wed, 5 May 2021 20:49:35 +0200 Subject: [PATCH] Fix gecko lib to own format function --- .../io/github/kosmx/emotes/main/config/EmoteSerializer.java | 6 ++++-- gradle.properties | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/emotesMain/src/main/java/io/github/kosmx/emotes/main/config/EmoteSerializer.java b/emotesMain/src/main/java/io/github/kosmx/emotes/main/config/EmoteSerializer.java index 759bcf23..816523f8 100644 --- a/emotesMain/src/main/java/io/github/kosmx/emotes/main/config/EmoteSerializer.java +++ b/emotesMain/src/main/java/io/github/kosmx/emotes/main/config/EmoteSerializer.java @@ -220,8 +220,10 @@ private static void bodyPartDeserializer(JsonArray node, EmoteData.StateCollecti partDeserialize(node, bodyPart.pitch, bodyPart.name); partDeserialize(node, bodyPart.yaw, bodyPart.name); partDeserialize(node, bodyPart.roll, bodyPart.name); - partDeserialize(node, bodyPart.bend, bodyPart.name); - partDeserialize(node, bodyPart.bendDirection, bodyPart.name); + if(bodyPart.isBendable) { + partDeserialize(node, bodyPart.bend, bodyPart.name); + partDeserialize(node, bodyPart.bendDirection, bodyPart.name); + } } private static void partDeserialize(JsonArray array, EmoteData.StateCollection.State part, String parentName){ diff --git a/gradle.properties b/gradle.properties index da19c60c..d507919d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs = -Xmx2G #See copy-paste #Mod properties -mod_version = 2.0.2 +mod_version = 2.0.3 maven_group = io.github.kosmx.emotes archives_base_name = emotecraft