Fixed NPE spam to log

This commit is contained in:
Goodbird authored and Kam committed 2024-01-18 16:10:34 -05:00
1 parent f2f8b63ae5
commit a412ce6008
2 files changed
+4

No files matched your search

@@ -229,6 +229,8 @@ public class ModelLegs extends ModelScaleRenderer{
}
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity entity)
{
if(this.entity==null) return;
ModelPartData part = this.entity.modelData.legParts;
rotationPointZ = 0;
rotationPointY = 0;
@@ -82,6 +82,8 @@ public class ModelTail extends ModelScaleRenderer {
public void setRotationAngles(float par1, float par2, float par3,
float par4, float par5, float par6, Entity entity) {
if(this.entity==null) return;
rotateAngleY = MathHelper.cos(par1 * 0.6662F) * 0.3f * par2;
rotateAngleX = MathHelper.sin(par3 * 0.067F) * 0.05F;