From 27e70c95246d5f70ddbf0d168b4e37f054b5ea37 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 f9ae8e0..f658e7b 100644 --- a/mods/boats/init.lua +++ b/mods/boats/init.lua @@ -172,7 +172,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