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:
Electroblob77
2020-11-03 01:33:22 +00:00
parent d3837a6185
commit c64731e7a9
2 changed files with 29 additions and 0 deletions
@@ -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){