mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Fixed items held by unicorns rotating weirdly whilst swimming/crawling
This commit is contained in:
parent
3f4cbdb991
commit
de55c38a74
1 changed files with 3 additions and 13 deletions
|
@ -57,6 +57,9 @@ public class ModelUnicorn<T extends LivingEntity> extends ModelEarthPony<T> impl
|
|||
|
||||
unicornArmLeft.pitch = 0;
|
||||
unicornArmRight.pitch = 0;
|
||||
|
||||
unicornArmLeft.yaw = 0;
|
||||
unicornArmRight.yaw = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -71,19 +74,6 @@ public class ModelUnicorn<T extends LivingEntity> extends ModelEarthPony<T> impl
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void swingItem(T entity) {
|
||||
AbsoluteHand mainSide = getPreferedHand(entity);
|
||||
|
||||
if (canCast() && getArmPoseForSide(mainSide) != ArmPose.EMPTY) {
|
||||
if (getSwingAmount() > -9990 && !attributes.isSleeping) {
|
||||
swingArm(getUnicornArmForSide(mainSide));
|
||||
}
|
||||
} else {
|
||||
super.swingItem(entity);
|
||||
}
|
||||
}
|
||||
|
||||
public ArmPose getArmPoseForSide(AbsoluteHand side) {
|
||||
return side == AbsoluteHand.RIGHT ? rightArmPose : leftArmPose;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue