mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fix some rendering buggyness with parasprites
This commit is contained in:
parent
47a9b5bed9
commit
ffa9108f28
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue