mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
Uncommenting yaw change on go to pos. Breaks pathfinding.
This commit is contained in:
parent
fb29abcd50
commit
532fc22f62
1 changed files with 1 additions and 1 deletions
|
@ -2540,7 +2540,7 @@ local function go_to_pos(entity,b)
|
|||
local v = { x = b.x - s.x, z = b.z - s.z }
|
||||
local yaw = (atann(v.z / v.x) + pi / 2) - entity.rotate
|
||||
if b.x > s.x then yaw = yaw + pi end
|
||||
--entity.object:set_yaw(yaw)
|
||||
entity.object:set_yaw(yaw)
|
||||
set_velocity(entity,entity.follow_velocity)
|
||||
mcl_mobs:set_animation(entity, "walk")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue