mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fixed copilot menu
This commit is contained in:
parent
ad6899661c
commit
3a3ac1c36e
1 changed files with 6 additions and 1 deletions
|
@ -856,7 +856,12 @@ function airutils.on_rightclick(self, clicker)
|
||||||
--=========================
|
--=========================
|
||||||
elseif name == copilot_name then
|
elseif name == copilot_name then
|
||||||
if self._command_is_given 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
|
else
|
||||||
airutils.pax_formspec(name)
|
airutils.pax_formspec(name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue