try new nil check (thanks smk)
This commit is contained in:
parent
4f22460ff2
commit
a9436b25fc
2
api.lua
2
api.lua
@ -154,7 +154,7 @@ end
|
|||||||
|
|
||||||
function object_fly(entity, dtime, speed, shoots, arrow, moving_anim, stand_anim)
|
function object_fly(entity, dtime, speed, shoots, arrow, moving_anim, stand_anim)
|
||||||
|
|
||||||
if entity and not entity.driver then return end
|
if entity and not entity.driver:get_look_dir() then return end
|
||||||
|
|
||||||
local ctrl = entity.driver:get_player_control()
|
local ctrl = entity.driver:get_player_control()
|
||||||
local velo = entity.object:get_velocity()
|
local velo = entity.object:get_velocity()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user