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
|
end
|
||||||
|
|
||||||
local tmpyaw = self.object:get_yaw()
|
local tmpyaw = self.object:get_yaw()
|
||||||
|
if not tmpyaw then
|
||||||
|
return
|
||||||
|
end
|
||||||
local yaw = self.rotate
|
local yaw = self.rotate
|
||||||
|
|
||||||
if tmpyaw ~= tmpyaw then -- It's a NaN value
|
if tmpyaw ~= tmpyaw then -- It's a NaN value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user