From e633f15eedab750525b06d840307598d02979b75 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 11 Sep 2019 12:50:58 +0200 Subject: [PATCH] Fix boat behavior a bit when falling on water --- mods/ENTITIES/mcl_boats/init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mods/ENTITIES/mcl_boats/init.lua b/mods/ENTITIES/mcl_boats/init.lua index 58b8d5b278..9ce552c970 100644 --- a/mods/ENTITIES/mcl_boats/init.lua +++ b/mods/ENTITIES/mcl_boats/init.lua @@ -248,11 +248,8 @@ function boat.on_step(self, dtime) else -- On top of water new_acce = {x = 0, y = 0, z = 0} - if math.abs(self.object:get_velocity().y) < 1 then - local pos = self.object:get_pos() - pos.y = math.floor(pos.y) + boat_y_offset + if math.abs(self.object:get_velocity().y) < 0 then new_velo = get_velocity(self._v, self.object:get_yaw(), 0) - self.object:set_pos(pos) else new_velo = get_velocity(self._v, self.object:get_yaw(), self.object:get_velocity().y)