From aef68d34fd457eca7bc5e27b1a8862fcd873a66f Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 29 Dec 2024 11:55:55 -0600 Subject: [PATCH] Address review comment and adjust multiplier --- mods/ENTITIES/mcl_minecarts/movement.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_minecarts/movement.lua b/mods/ENTITIES/mcl_minecarts/movement.lua index 7f2bb1104..d046d896e 100644 --- a/mods/ENTITIES/mcl_minecarts/movement.lua +++ b/mods/ENTITIES/mcl_minecarts/movement.lua @@ -567,8 +567,8 @@ function submod.do_detached_movement(self, dtime) local away = vector_away_from_players(self, staticdata) if away then - local v = self.object:get_velocity() * 0.25 - self.object:set_velocity(v - away) + local v = self.object:get_velocity() + self.object:set_velocity((v - away)*0.65) -- Boost the minecart vertically a bit to get over the edge of rails and things like carpets local boost = vector.offset(vector.multiply(vector.normalize(away), 0.1), 0, 0.07, 0) -- 1/16th + 0.0075