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