From c353e8e3ac26530dc77c7eaddb0861b0c4949fbb Mon Sep 17 00:00:00 2001 From: David Leal Date: Mon, 16 Nov 2020 20:43:10 -0600 Subject: [PATCH] Support to enable/disable individually... ...crashing to an entity. --- init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 00e901d..809dc30 100644 --- a/init.lua +++ b/init.lua @@ -22,8 +22,7 @@ lib_mount = { passengers = {} } -local enable_crash = true -local crash_threshold = 6.5 -- ignored if enable_crash=false +local crash_threshold = 6.5 -- ignored if enable_crash is disabled ------------------------------------------------------------------------------ @@ -210,7 +209,7 @@ end local aux_timer = 0 -function lib_mount.drive(entity, dtime, is_mob, moving_anim, stand_anim, jump_height, can_fly, can_go_down, can_go_up) +function lib_mount.drive(entity, dtime, is_mob, moving_anim, stand_anim, jump_height, can_fly, can_go_down, can_go_up, enable_crash) aux_timer = aux_timer + dtime if can_fly and can_fly == true then