From e05d1c52d512de4a7bba1a19f875a52d622a8180 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Fri, 15 Mar 2024 20:18:39 -0300 Subject: [PATCH] remove player rescue when in auto mode --- lib_planes/entities.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 2b943c6..317accd 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -323,7 +323,7 @@ function airutils.logic(self) local is_attached = airutils.checkAttach(self, player) if self._indicated_speed == nil then self._indicated_speed = 0 end - if not is_attached then + if not is_attached and not self._autoflymode == true then -- for some engine error the player can be detached from the machine, so lets set him attached again airutils.checkattachBug(self) end @@ -512,7 +512,9 @@ function airutils.logic(self) --end accell --get disconnected players - airutils.rescueConnectionFailedPassengers(self) + if not self._autoflymode == true then + airutils.rescueConnectionFailedPassengers(self) + end if accel == nil then accel = {x=0,y=0,z=0} end