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