Add nil check in mobs (tmpyaw)
This commit is contained in:
parent
5dc014ed22
commit
095085cc38
@ -290,6 +290,9 @@ function mobs:register_mob(name, def)
|
||||
end
|
||||
|
||||
local tmpyaw = self.object:get_yaw()
|
||||
if not tmpyaw then
|
||||
return
|
||||
end
|
||||
local yaw = self.rotate
|
||||
|
||||
if tmpyaw ~= tmpyaw then -- It's a NaN value
|
||||
|
Loading…
Reference in New Issue
Block a user