Skip to content

Commit 1ade894

Browse files
authoredDec 28, 2020
Fix boat floating in the air when water being drained away (#2788)
1 parent e6aec88 commit 1ade894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎mods/boats/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ function boat.on_step(self, dtime)
171171
end
172172
end
173173
local velo = self.object:get_velocity()
174-
if self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then
174+
if not self.driver and
175+
self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then
175176
self.object:set_pos(self.object:get_pos())
176177
return
177178
end

0 commit comments

Comments
 (0)
Please sign in to comment.