From c4561a22079f3cbde5e02eebceffe4fd29f5144b Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 16 Apr 2024 10:41:01 +0100 Subject: [PATCH] mount.lua nil check --- mount.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mount.lua b/mount.lua index bbd2d88..fbf1f22 100644 --- a/mount.lua +++ b/mount.lua @@ -448,7 +448,9 @@ function mobs.fly(entity, _, speed, shoots, arrow, moving_anim, stand_anim) local ctrl = entity.driver:get_player_control() ; if not ctrl then return end local velo = entity.object:get_velocity() ; if not velo then return end local dir = entity.driver:get_look_dir() - local yaw = entity.driver:get_look_horizontal() + 1.57 + local yaw = entity.driver:get_look_horizontal() ; if not yaw then return end + + yaw = yaw + 1.57 -- fix from get_yaw to get_look_horizontal if ctrl.up then