From 3a3ac1c36e188335630f5c4e24e14c2b6bdf3502 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Tue, 12 Mar 2024 19:40:41 -0300 Subject: [PATCH] fixed copilot menu --- lib_planes/entities.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 344ae43..bd71721 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -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