Fix some rendering buggyness with parasprites

This commit is contained in:
Sollace 2020-05-15 13:17:03 +02:00
parent 47a9b5bed9
commit ffa9108f28

View file

@ -40,9 +40,14 @@ public class ParaspriteModel extends EntityModel<StriderEntity> implements MsonM
@Override
public void setAngles(StriderEntity entity, float move, float swing, float ticks, float headYaw, float headPitch) {
if (entity.hasPassengers()) {
body.yaw = 0;
body.pitch = 0;
} else {
body.yaw = headYaw * 0.017453292F;
body.pitch = headPitch * 0.017453292F;
}
saddle.copyPositionAndRotation(body);
float sin = (float)Math.sin(ticks) / 2;