mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
We can actually simplify this, a lot
This commit is contained in:
parent
de55c38a74
commit
44b07c2b19
1 changed files with 2 additions and 19 deletions
|
@ -29,14 +29,6 @@ public class ModelUnicorn<T extends LivingEntity> extends ModelEarthPony<T> impl
|
||||||
horn = new UnicornHorn(this, yOffset, stretch);
|
horn = new UnicornHorn(this, yOffset, stretch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void rotateLegsOnGround(float move, float swing, float ticks, T entity) {
|
|
||||||
super.rotateLegsOnGround(move, swing, ticks, entity);
|
|
||||||
|
|
||||||
unicornArmRight.yaw = 0;
|
|
||||||
unicornArmLeft.yaw = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getWobbleAmount() {
|
public float getWobbleAmount() {
|
||||||
if (isCasting()) {
|
if (isCasting()) {
|
||||||
|
@ -49,17 +41,8 @@ public class ModelUnicorn<T extends LivingEntity> extends ModelEarthPony<T> impl
|
||||||
protected void rotateLegs(float move, float swing, float ticks, T entity) {
|
protected void rotateLegs(float move, float swing, float ticks, T entity) {
|
||||||
super.rotateLegs(move, swing, ticks, entity);
|
super.rotateLegs(move, swing, ticks, entity);
|
||||||
|
|
||||||
unicornArmRight.setRotationPoint(-7, 12, -2);
|
unicornArmRight.rotate(0, 0, 0).around(-7, 12, -2);
|
||||||
unicornArmLeft.setRotationPoint(-7, 12, -2);
|
unicornArmLeft.rotate(0, 0, 0).around(-7, 12, -2);
|
||||||
|
|
||||||
unicornArmLeft.roll = 0;
|
|
||||||
unicornArmRight.roll = 0;
|
|
||||||
|
|
||||||
unicornArmLeft.pitch = 0;
|
|
||||||
unicornArmRight.pitch = 0;
|
|
||||||
|
|
||||||
unicornArmLeft.yaw = 0;
|
|
||||||
unicornArmRight.yaw = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue