nil check in do_states

This commit is contained in:
TenPlus1 2020-07-20 18:10:08 +01:00
parent ec3c6fb518
commit 1271570780
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 = "20200717",
version = "20200720",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -2132,7 +2132,7 @@ end
-- execute current state (stand, walk, run, attacks)
function mob_class:do_states(dtime)
local yaw = self.object:get_yaw() or 0
local yaw = self.object:get_yaw() ; if not yaw then return end
if self.state == "stand" then