mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Fixed NPE spam to log
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user