mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fix mob armor being messed up
This commit is contained in:
parent
99401877e1
commit
8feb98a756
3 changed files with 1 additions and 8 deletions
|
@ -23,6 +23,7 @@ public class PlayerModel {
|
||||||
|
|
||||||
public PlayerModel setArmor(AbstractArmor armor) {
|
public PlayerModel setArmor(AbstractArmor armor) {
|
||||||
this.armor = armor;
|
this.armor = armor;
|
||||||
|
this.armor.apply(model.metadata);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,13 +34,9 @@ public class ModelSkeletonPonyArmor extends ModelPonyArmor {
|
||||||
this.bipedLeftLeg.rotateAngleY = 0.2F;
|
this.bipedLeftLeg.rotateAngleY = 0.2F;
|
||||||
} else {
|
} else {
|
||||||
var8 = (float) Math.pow(swing, 16.0D);
|
var8 = (float) Math.pow(swing, 16.0D);
|
||||||
this.getClass();
|
|
||||||
var9 = 3.1415927F * var8 * 0.5F;
|
var9 = 3.1415927F * var8 * 0.5F;
|
||||||
this.getClass();
|
|
||||||
float laQuad = 3.1415927F * var8;
|
float laQuad = 3.1415927F * var8;
|
||||||
this.getClass();
|
|
||||||
float rlQuad = 3.1415927F * var8 * 0.2F;
|
float rlQuad = 3.1415927F * var8 * 0.2F;
|
||||||
this.getClass();
|
|
||||||
float llQuad = 3.1415927F * var8 * -0.4F;
|
float llQuad = 3.1415927F * var8 * -0.4F;
|
||||||
rightArmRotateAngleX = MathHelper.cos(move * 0.6662F + 3.1415927F + var9) * 0.6F * swing;
|
rightArmRotateAngleX = MathHelper.cos(move * 0.6662F + 3.1415927F + var9) * 0.6F * swing;
|
||||||
leftArmRotateAngleX = MathHelper.cos(move * 0.6662F + laQuad) * 0.6F * swing;
|
leftArmRotateAngleX = MathHelper.cos(move * 0.6662F + laQuad) * 0.6F * swing;
|
||||||
|
|
|
@ -34,13 +34,9 @@ public class ModelZombiePonyArmor extends ModelPonyArmor {
|
||||||
this.bipedLeftLeg.rotateAngleY = 0.2F;
|
this.bipedLeftLeg.rotateAngleY = 0.2F;
|
||||||
} else {
|
} else {
|
||||||
var8 = (float) Math.pow(swing, 16.0D);
|
var8 = (float) Math.pow(swing, 16.0D);
|
||||||
this.getClass();
|
|
||||||
var9 = 3.1415927F * var8 * 0.5F;
|
var9 = 3.1415927F * var8 * 0.5F;
|
||||||
this.getClass();
|
|
||||||
float laQuad = 3.1415927F * var8;
|
float laQuad = 3.1415927F * var8;
|
||||||
this.getClass();
|
|
||||||
float rlQuad = 3.1415927F * var8 * 0.2F;
|
float rlQuad = 3.1415927F * var8 * 0.2F;
|
||||||
this.getClass();
|
|
||||||
float llQuad = 3.1415927F * var8 * -0.4F;
|
float llQuad = 3.1415927F * var8 * -0.4F;
|
||||||
rightArmRotateAngleX = MathHelper.cos(move * 0.6662F + 3.1415927F + var9) * 0.45F * swing;
|
rightArmRotateAngleX = MathHelper.cos(move * 0.6662F + 3.1415927F + var9) * 0.45F * swing;
|
||||||
leftArmRotateAngleX = MathHelper.cos(move * 0.6662F + laQuad) * 0.45F * swing;
|
leftArmRotateAngleX = MathHelper.cos(move * 0.6662F + laQuad) * 0.45F * swing;
|
||||||
|
|
Loading…
Reference in a new issue