Added a check for "self"
This commit is contained in:
parent
b07259b990
commit
9ef6853f58
@ -191,7 +191,9 @@ mobs:register_mob("nssm:morlu", {
|
|||||||
local pyaw = self.curr_attack: get_look_yaw()
|
local pyaw = self.curr_attack: get_look_yaw()
|
||||||
self.dir = pyaw
|
self.dir = pyaw
|
||||||
self.object:setyaw(pyaw)
|
self.object:setyaw(pyaw)
|
||||||
|
if self then
|
||||||
set_velocity(self, 4)
|
set_velocity(self, 4)
|
||||||
|
end
|
||||||
|
|
||||||
end,self)
|
end,self)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user