We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82b245b commit 75ff36eCopy full SHA for 75ff36e
src/main/java/de/erethon/aether/creature/AetherPlayer.java
@@ -100,7 +100,14 @@ public float getPreciseBodyRotation(float partialTick) {
100
@Override
101
public void lookAt(Entity entity, float maxYRotIncrease, float maxXRotIncrease) {
102
super.lookAt(entity, maxYRotIncrease, maxXRotIncrease);
103
- yBodyRot = Mth.rotateIfNecessary(yBodyRot, yHeadRot, (float) getMaxHeadYRot());
+ yBodyRot = Mth.rotateIfNecessary(yBodyRot, yHeadRot, maxYRotIncrease);
104
+ }
105
+
106
+ @Override
107
+ public void tick() {
108
+ super.tick();
109
+ // Rotate the NPC
110
+ setYRot(yBodyRot);
111
}
112
113
private void sendPlayerStuff(ServerPlayer serverPlayer) {
0 commit comments