From 8012250258243709e95ff178d62e6a069ef74afa Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 21 May 2021 17:46:10 +0100 Subject: [PATCH] nil check for mount --- mount.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mount.lua b/mount.lua index 550bf3e..7a72c64 100644 --- a/mount.lua +++ b/mount.lua @@ -387,6 +387,8 @@ function mobs.fly(entity, _, speed, shoots, arrow, moving_anim, stand_anim) local dir = entity.driver:get_look_dir() local yaw = entity.driver:get_look_horizontal() + 1.57 -- offset fix between old and new commands +if not ctrl or not velo then return end + if ctrl.up then entity.object:set_velocity({ x = dir.x * speed,