Fix ClassCastException in player animations, fixes #533
Somehow some unwrapped model parts managed to slip through (exactly *how* is a mystery!) so we're just safety-checking everything, I doubt this incurs much performance cost in the scheme of things.
This commit is contained in:
@@ -173,6 +173,8 @@ public class PlayerAnimator {
|
||||
|
||||
for(ModelBiped model : models){
|
||||
|
||||
if(!ModelRendererExtended.isWrapped(model)) continue; // Should never happen but somehow it does
|
||||
|
||||
animation.setRotationAngles(player, model, partialTicks, firstPerson);
|
||||
|
||||
if(autoRotateSecondLayer && model instanceof ModelPlayer){
|
||||
|
||||
Reference in New Issue
Block a user