mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
Small null check fix
This commit is contained in:
1 parent
8419d6f643
commit
f19797b0ac
1 file changed
+1
-1
@@ -114,7 +114,7 @@ public abstract class MixinModelRenderer {
|
||||
if (partType != null && animData != null && animData.animation != null && animData.isActive()) {
|
||||
FramePart originalPart = ClientEventHandler.originalValues.get((ModelRenderer) (Object) this);
|
||||
Frame frame = (Frame) animData.animation.currentFrame();
|
||||
if (frame != null && frame.frameParts.containsKey(partType)) {
|
||||
if (originalPart != null && frame != null && frame.frameParts.containsKey(partType)) {
|
||||
FramePart part = frame.frameParts.get(partType);
|
||||
if (partType == mainPartType) {
|
||||
part.interpolateAngles();
|
||||
|
||||
Reference in new issue
Block a user