Added a check for "self"

This commit is contained in:
npx 2016-11-15 21:41:12 +01:00
parent b07259b990
commit 9ef6853f58

View File

@ -191,7 +191,9 @@ mobs:register_mob("nssm:morlu", {
local pyaw = self.curr_attack: get_look_yaw()
self.dir = pyaw
self.object:setyaw(pyaw)
set_velocity(self, 4)
if self then
set_velocity(self, 4)
end
end,self)
end