diff --git a/automobiles_buggy/buggy_entities.lua b/automobiles_buggy/buggy_entities.lua index 0cb158c..40c99bd 100755 --- a/automobiles_buggy/buggy_entities.lua +++ b/automobiles_buggy/buggy_entities.lua @@ -618,7 +618,9 @@ minetest.register_entity("automobiles_buggy:buggy", { if stop ~= true then --self.object:set_velocity(velocity) - self.object:set_acceleration(self.object:get_acceleration()) + if player then + automobiles_lib.attach_driver(self, player) + end self.object:set_acceleration(accel) else if stop == true then diff --git a/automobiles_coupe/coupe_entities.lua b/automobiles_coupe/coupe_entities.lua index 2c8b6fa..34e37c6 100755 --- a/automobiles_coupe/coupe_entities.lua +++ b/automobiles_coupe/coupe_entities.lua @@ -646,7 +646,9 @@ minetest.register_entity("automobiles_coupe:coupe", { if stop ~= true then --self.object:set_velocity(velocity) - self.object:set_acceleration(self.object:get_acceleration()) + if player then + automobiles_lib.attach_driver(self, player) + end self.object:set_acceleration(accel) else if stop == true then diff --git a/automobiles_roadster/roadster_entities.lua b/automobiles_roadster/roadster_entities.lua index 93e1744..0ef2ae2 100755 --- a/automobiles_roadster/roadster_entities.lua +++ b/automobiles_roadster/roadster_entities.lua @@ -591,7 +591,9 @@ minetest.register_entity("automobiles_roadster:roadster", { if stop ~= true then --self.object:set_velocity(velocity) - self.object:set_acceleration(self.object:get_acceleration()) + if player then + automobiles_lib.attach_driver(self, player) + end self.object:set_acceleration(accel) else if stop == true then