fix morlu velocity

This commit is contained in:
Tai Kedzierski 2019-01-12 14:03:54 +00:00
parent d553997b3d
commit 02c57725c2

View File

@ -73,7 +73,7 @@ mobs:register_mob("nssm:morlu", {
self.state = ""
mobs:set_animation(self, "run")
self.object:setyaw(self.dir)
set_velocity(self, 4)
self:set_velocity(4)
if os.time() - self.morlu_timer > 3 then
self.flag = 0
@ -193,7 +193,7 @@ mobs:register_mob("nssm:morlu", {
self.dir = pyaw
self.object:setyaw(pyaw)
if self then
set_velocity(self, 4)
self:set_velocity(4)
end
end
end,self)