From ca504e80c7a53cc2b0b86ef8c6aec33c3b5a2269 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Tue, 31 Dec 2024 19:35:54 +0100 Subject: [PATCH] Fix carts randomly derailing (#4780) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4780 Reviewed-by: Mikita Wiśniewski Co-authored-by: teknomunk Co-committed-by: teknomunk --- mods/ENTITIES/mcl_minecarts/carts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_minecarts/carts.lua b/mods/ENTITIES/mcl_minecarts/carts.lua index ecf9eca7e..931bc5578 100644 --- a/mods/ENTITIES/mcl_minecarts/carts.lua +++ b/mods/ENTITIES/mcl_minecarts/carts.lua @@ -391,7 +391,7 @@ function mod.place_minecart(itemstack, pointed_thing, placer) local look_4dir = math.round(placer:get_look_horizontal() * TWO_OVER_PI) % 4 local look_dir = core.fourdir_to_dir(look_4dir) - look_dir.x = -look_dir.x + look_dir = vector.new(-look_dir.x,0,look_dir.z) local spawn_pos = pointed_thing.above local cart_dir = look_dir