mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEnginePackGenerator-extension.git
synced 2025-12-20 07:19:19 +00:00
add a check
This commit is contained in:
@@ -54,6 +54,9 @@ public class Animation {
|
|||||||
for (Map.Entry<String, JsonElement> anim : bone.getValue().getAsJsonObject().entrySet()) {
|
for (Map.Entry<String, JsonElement> anim : bone.getValue().getAsJsonObject().entrySet()) {
|
||||||
float max = -1;
|
float max = -1;
|
||||||
JsonObject end = null;
|
JsonObject end = null;
|
||||||
|
if (!anim.getValue().isJsonObject()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
for (Map.Entry<String, JsonElement> timeline : anim.getValue().getAsJsonObject().entrySet()) {
|
for (Map.Entry<String, JsonElement> timeline : anim.getValue().getAsJsonObject().entrySet()) {
|
||||||
float time = Float.parseFloat(timeline.getKey());
|
float time = Float.parseFloat(timeline.getKey());
|
||||||
if (time > max) {
|
if (time > max) {
|
||||||
|
|||||||
Reference in New Issue
Block a user