Update framework due to API changes
This commit is contained in:
parent
cf6ad14c86
commit
8935e1ce05
@ -26,6 +26,7 @@ function vehicle_mash.register_vehicle(name, def)
|
||||
passenger3_eye_offset = def.passenger3_eye_offset,
|
||||
passenger3_detach_pos_offset = def.passenger3_detach_pos_offset,
|
||||
|
||||
enable_crash = def.enable_crash or true,
|
||||
visual = def.visual,
|
||||
mesh = def.mesh,
|
||||
textures = def.textures,
|
||||
@ -139,7 +140,7 @@ function vehicle_mash.register_vehicle(name, def)
|
||||
end
|
||||
end,
|
||||
on_step = function(self, dtime)
|
||||
drive(self, dtime, false, nil, nil, 0, def.can_fly, def.can_go_down, def.can_go_up)
|
||||
drive(self, dtime, false, nil, nil, 0, def.can_fly, def.can_go_down, def.can_go_up, def.enable_crash)
|
||||
end
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user