This commit is contained in:
Alexsandro Percy 2024-07-07 11:21:23 -03:00
parent 8a3d783fe4
commit ffc684f3e0

View File

@ -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