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

This commit is contained in:
randomMesh 2020-12-02 20:13:51 +01:00
parent 29866dbcb3
commit a0a948e7ea

View file

@ -172,7 +172,7 @@ 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