setHeadYaw mappings fix

This commit is contained in:
fullwall 2021-06-13 13:10:12 +08:00
parent 630484273a
commit ffa3c8f0ab
1 changed files with 2 additions and 2 deletions

View File

@ -1164,9 +1164,9 @@ public class NMSImpl implements NMSBridge {
return; return;
LivingEntity handle = (LivingEntity) getHandle(entity); LivingEntity handle = (LivingEntity) getHandle(entity);
yaw = Util.clampYaw(yaw); yaw = Util.clampYaw(yaw);
handle.yBodyRot = yaw; handle.yBodyRotO = yaw;
if (!(handle instanceof ServerPlayer)) { if (!(handle instanceof ServerPlayer)) {
handle.yHeadRot = yaw; // TODO: why this handle.setYBodyRot(yaw);
} }
handle.setYHeadRot(yaw); handle.setYHeadRot(yaw);
} }