1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-11 10:20:21 +01:00

fix pos_to_yaw missing rot

This commit is contained in:
tenplus1 2020-06-16 20:53:05 +01:00
parent ad116aa70e
commit 83e9180853

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = { mobs = {
mod = "redo", mod = "redo",
version = "20200609", version = "20200616",
intllib = S, intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {} invis = minetest.global_exists("invisibility") and invisibility or {}
} }
@ -590,7 +590,7 @@ local yaw_to_pos = function(self, target, rot)
yaw = yaw + pi yaw = yaw + pi
end end
yaw = self:set_yaw(yaw, 6) yaw = self:set_yaw(yaw, rot)
return yaw return yaw
end end