Fixed armour leg placement when riding

This commit is contained in:
Sollace 2018-08-18 15:13:08 +02:00
parent dca3cad2cd
commit 240345f29a
2 changed files with 3 additions and 4 deletions

View file

@ -864,6 +864,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
isElytraFlying = pony.isElytraFlying; isElytraFlying = pony.isElytraFlying;
isSwimming = pony.isSwimming; isSwimming = pony.isSwimming;
isSleeping = pony.isSleeping; isSleeping = pony.isSleeping;
headGear = pony.headGear;
metadata = pony.metadata; metadata = pony.metadata;
motionPitch = pony.motionPitch; motionPitch = pony.motionPitch;
rainboom = pony.rainboom; rainboom = pony.rainboom;

View file

@ -32,11 +32,8 @@ public class ModelPonyArmor extends AbstractPonyModel implements IModelArmor {
} }
@Override @Override
protected void renderLegs(float scale) {
super.renderLegs(scale);
}
public <T extends ModelBiped & IModel> void synchroniseLegs(T mainModel) { public <T extends ModelBiped & IModel> void synchroniseLegs(T mainModel) {
copyModelAngles(mainModel.bipedBody, bipedBody);
copyModelAngles(mainModel.bipedRightArm, bipedRightArm); copyModelAngles(mainModel.bipedRightArm, bipedRightArm);
copyModelAngles(mainModel.bipedLeftArm, bipedLeftArm); copyModelAngles(mainModel.bipedLeftArm, bipedLeftArm);
copyModelAngles(mainModel.bipedRightLeg, bipedRightLeg); copyModelAngles(mainModel.bipedRightLeg, bipedRightLeg);
@ -72,6 +69,7 @@ public class ModelPonyArmor extends AbstractPonyModel implements IModelArmor {
@Override @Override
public void setInVisible() { public void setInVisible() {
setVisible(false); setVisible(false);
bipedBody.showModel = true;
chestPiece.showModel = false; chestPiece.showModel = false;
bipedHead.showModel = false; bipedHead.showModel = false;
neck.showModel = false; neck.showModel = false;