mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-24 00:10:16 +01:00
mount.lua nil check
This commit is contained in:
parent
998637fc3d
commit
c4561a2207
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user