added support for custom forms

This commit is contained in:
Alexsandro Percy 2023-06-19 20:12:50 -03:00
parent 0509ddfe1c
commit 42e111dcea

View file

@ -603,7 +603,11 @@ function airutils.on_rightclick(self, clicker)
-- detach pilot
--=========================
if name == self.driver_name then
airutils.pilot_formspec(name)
if not self._custom_pilot_formspec then
airutils.pilot_formspec(name)
else
self._custom_pilot_formspec(name)
end
--=========================
-- detach passenger
--=========================