From 532fc22f627e761ffbefe19a45f57ef3908b3307 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Mon, 31 Oct 2022 22:26:03 +0000 Subject: [PATCH] Uncommenting yaw change on go to pos. Breaks pathfinding. --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index e58eec00e..19d627c91 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -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