mirror of
https://github.com/GeyserExtensionists/GeyserModelEnginePackGenerator.git
synced 2025-12-23 08:59:29 +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