From 120af0f434e2235e77731d3f0f6b2b130bbf362e Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 28 Apr 2024 05:35:36 +0000 Subject: [PATCH] Change verticle offset for testing reattaching to rail to 0.55, which is a bit more than the stair step height --- 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 41e4a7a81..06e67ed94 100644 --- a/mods/ENTITIES/mcl_minecarts/movement.lua +++ b/mods/ENTITIES/mcl_minecarts/movement.lua @@ -526,8 +526,8 @@ local function do_detached_movement(self, dtime) local yaw_dir = minetest.yaw_to_dir(yaw) local test_positions = { pos, - vector.offset(vector.add(pos, vector.multiply(yaw_dir, 0.5)),0,-0.3,0), - vector.offset(vector.add(pos, vector.multiply(yaw_dir,-0.5)),0,-0.3,0), + vector.offset(vector.add(pos, vector.multiply(yaw_dir, 0.5)),0,-0.55,0), + vector.offset(vector.add(pos, vector.multiply(yaw_dir,-0.5)),0,-0.55,0), } for i=1,#test_positions do