mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Change villager head rolling into a head shaking motion
This commit is contained in:
parent
5d15c64fa0
commit
52bc2ab207
1 changed files with 1 additions and 4 deletions
|
@ -25,10 +25,7 @@ public class VillagerPonyRenderer extends AbstractNpcRenderer<VillagerEntity> {
|
|||
boolean isHeadRolling = entity instanceof MerchantEntity && ((MerchantEntity)entity).getHeadRollingTimeLeft() > 0;
|
||||
|
||||
if (isHeadRolling) {
|
||||
m.head.roll = 0.3F * MathHelper.sin(0.45F * ticks);
|
||||
m.head.pitch = 0.4F;
|
||||
} else {
|
||||
m.head.roll = 0;
|
||||
m.head.yaw = 0.3F * MathHelper.sin(0.45F * ticks);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue