From 1ade8941b497e71dd05e80827e5f34a4659e47b0 Mon Sep 17 00:00:00 2001 From: The most random of all meshes <32773707+randomMesh@users.noreply.github.com> Date: Mon, 28 Dec 2020 15:56:04 +0100 Subject: [PATCH] Fix boat floating in the air when water being drained away (#2788) --- mods/boats/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/boats/init.lua b/mods/boats/init.lua index cb89e91a..2f305415 100644 --- a/mods/boats/init.lua +++ b/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