From a9436b25fc7cd2ab8a60f57de5de2f0b3cf5969d Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 2 Jan 2022 12:46:47 +0000 Subject: [PATCH] try new nil check (thanks smk) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index dc3d3f6..554bfff 100644 --- a/api.lua +++ b/api.lua @@ -154,7 +154,7 @@ end 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 velo = entity.object:get_velocity()