Skip to content
Permalink
Browse files

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

  • Loading branch information
randomMesh committed Dec 28, 2020
1 parent e6aec88 commit 1ade8941b497e71dd05e80827e5f34a4659e47b0
Showing with 2 additions and 1 deletion.
  1. +2 −1 mods/boats/init.lua
@@ -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

0 comments on commit 1ade894

Please sign in to comment.