setHeadYaw mappings fix
This commit is contained in:
parent
630484273a
commit
ffa3c8f0ab
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue