missed local

This commit is contained in:
TenPlus1 2020-05-04 20:45:43 +01:00
parent 00e8ac0850
commit 99fe3d0ce1
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20200502",
version = "20200504",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -605,7 +605,7 @@ function mob_class:do_stay_near()
local direction = vector.direction(pos, target)
local vec = {x = target.x - pos.x, z = target.z - pos.z}
yaw = (atan(vec.z / vec.x) + pi / 2) - self.rotate
local yaw = (atan(vec.z / vec.x) + pi / 2) - self.rotate
if target.x > pos.x then
yaw = yaw + pi