mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEnginePackGenerator-extension.git
synced 2025-12-20 15:29:24 +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()) {
|
||||
float max = -1;
|
||||
JsonObject end = null;
|
||||
if (!anim.getValue().isJsonObject()) {
|
||||
continue;
|
||||
}
|
||||
for (Map.Entry<String, JsonElement> timeline : anim.getValue().getAsJsonObject().entrySet()) {
|
||||
float time = Float.parseFloat(timeline.getKey());
|
||||
if (time > max) {
|
||||
|
||||
Reference in New Issue
Block a user