fixed copilot menu

This commit is contained in:
Alexsandro Percy 2024-03-12 19:40:41 -03:00
parent ad6899661c
commit 3a3ac1c36e

View file

@ -856,7 +856,12 @@ function airutils.on_rightclick(self, clicker)
--=========================
elseif name == copilot_name then
if self._command_is_given then
self._custom_pilot_formspec(name) --open the plane menu for the copilot
--formspec of the plane
if not self._custom_pilot_formspec then
airutils.pilot_formspec(name)
else
self._custom_pilot_formspec(name)
end
else
airutils.pax_formspec(name)
end