From 42e111dcea356726680b26e563682a71a67b52f4 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Mon, 19 Jun 2023 20:12:50 -0300 Subject: [PATCH] added support for custom forms --- lib_planes/entities.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index c616afd..068611a 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -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 --=========================