Change villager head rolling into a head shaking motion

This commit is contained in:
Sollace 2022-07-06 12:55:15 +02:00
parent 5d15c64fa0
commit 52bc2ab207

View file

@ -25,10 +25,7 @@ public class VillagerPonyRenderer extends AbstractNpcRenderer<VillagerEntity> {
boolean isHeadRolling = entity instanceof MerchantEntity && ((MerchantEntity)entity).getHeadRollingTimeLeft() > 0; boolean isHeadRolling = entity instanceof MerchantEntity && ((MerchantEntity)entity).getHeadRollingTimeLeft() > 0;
if (isHeadRolling) { if (isHeadRolling) {
m.head.roll = 0.3F * MathHelper.sin(0.45F * ticks); m.head.yaw = 0.3F * MathHelper.sin(0.45F * ticks);
m.head.pitch = 0.4F;
} else {
m.head.roll = 0;
} }
}); });
} }