1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-23 17:20:22 +01:00

add value for nil yaw

This commit is contained in:
tenplus1 2020-03-26 19:33:16 +00:00
parent dc3ed1dfe3
commit 9c60e96336

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20200312",
version = "20200326",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -3164,7 +3164,7 @@ function mob_class:on_step(dtime)
if self.delay and self.delay > 0 then
local yaw = self.object:get_yaw()
local yaw = self.object:get_yaw() or 0
if self.delay == 1 then
yaw = self.target_yaw