This commit is contained in:
gnembon committed 2021-05-12 12:12:33 -03:00
1 parent 407c117c29
commit c9ff5fea34
1 file changed
+1 -1
@@ -1062,7 +1062,7 @@ public class EntityValue extends Value
y /= l; y /= l;
z /= l; z /= l;
float pitch = (float) -Math.asin(y) / 0.017453292F; float pitch = (float) -Math.asin(y) / 0.017453292F;
float yaw = (float) (x==0 && z==0 ? e.yaw : MathHelper.atan2(-x,z) / 0.017453292F); float yaw = (float) (x==0 && z==0 ? e.getYaw() : MathHelper.atan2(-x,z) / 0.017453292F);
updatePosition(e, e.getX(), e.getY(), e.getZ(), yaw, pitch); updatePosition(e, e.getX(), e.getY(), e.getZ(), yaw, pitch);
}); });