improved passengers rescue

This commit is contained in:
Alexsandro Percy 2024-03-15 21:06:21 -03:00
parent e05d1c52d5
commit 315de219b1
2 changed files with 60 additions and 4 deletions

View file

@ -323,10 +323,9 @@ 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 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
-- for some engine error the player can be detached from the machine, so lets set him attached again
airutils.checkattachBug(self)
if self._custom_step_additional_function then
self._custom_step_additional_function(self)