Fix boat floating in the air when water being drained away (#2788)

stable-5.2
The most random of all meshes 2020-12-28 15:56:04 +01:00 committed by mckaygerhard
parent 4e3afc0035
commit 27e70c9524
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ function boat.on_step(self, dtime)
end
end
local velo = self.object:get_velocity()
if self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then
if not self.driver and
self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then
self.object:set_pos(self.object:get_pos())
return
end