Skip to content

Commit

Permalink
Fix boat floating in the air when water being drained away (#2788)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomMesh committed Dec 28, 2020
1 parent e6aec88 commit 1ade894
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/boats/init.lua
Expand Up @@ -171,7 +171,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
Expand Down

0 comments on commit 1ade894

Please sign in to comment.