added external information compatibility

This commit is contained in:
Alexsandro Percy 2024-03-09 21:30:39 -03:00
parent d605ae0acd
commit 2276891db7
2 changed files with 32 additions and 3 deletions

View file

@ -265,7 +265,9 @@ function airutils.dettach_pax(self, player, is_flying)
--move the player to the parent ship if any
if extern_ent then
extern_ent.on_rightclick(extern_ent, player)
if extern_ent.on_rightclick then
extern_ent.on_rightclick(extern_ent, player)
end
end
end
end