fix error on disembark

This commit is contained in:
Alexsandro Percy 2024-03-03 18:54:20 -03:00
parent d584970c76
commit 5e8e9e583d

View file

@ -128,9 +128,11 @@ function airutils.dettachPlayer(self, player)
--move the player to the parent ship if any --move the player to the parent ship if any
if extern_ent then if extern_ent then
if extern_ent.on_rightclick then
extern_ent.on_rightclick(extern_ent, player) extern_ent.on_rightclick(extern_ent, player)
end end
end end
end
function airutils.check_passenger_is_attached(self, name) function airutils.check_passenger_is_attached(self, name)
local is_attached = false local is_attached = false