From ffc684f3e05e5068695a3184e69e5df4e382ae94 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sun, 7 Jul 2024 11:21:23 -0300 Subject: [PATCH] issue #29 --- automobiles_delorean/flight.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/automobiles_delorean/flight.lua b/automobiles_delorean/flight.lua index c641bb5..a6438dc 100644 --- a/automobiles_delorean/flight.lua +++ b/automobiles_delorean/flight.lua @@ -75,8 +75,10 @@ end function delorean.set_mode(self, is_attached, curr_pos, velocity, player, dtime) if self._car_type == 1 then local ent_properties = self.normal_kit:get_properties() - if ent_properties.mesh ~= "automobiles_delorean_time_machine_accessories.b3d" then - delorean.set_kit(self) + if ent_properties then + if ent_properties.mesh ~= "automobiles_delorean_time_machine_accessories.b3d" then + delorean.set_kit(self) + end end if is_attached == true then