Small fix for null pointer exception in reading Animation from NBT

This commit is contained in:
Luis C.M committed 2024-03-08 00:28:55 -06:00
1 parent edf08746cb
commit 0354d253d7
1 file changed
+1 -1
@@ -174,7 +174,7 @@ public class Animation implements IAnimation {
if(compound.hasKey("ID")){
id = compound.getInteger("ID");
}
else {
else if (AnimationController.Instance != null) {
id = AnimationController.Instance.getUnusedId();
}