mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
Small fix for null pointer exception in reading Animation from NBT
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user