From b911de050dd545862569ba5d189a36d5a2a41e31 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 3 Nov 2024 07:44:28 -0600 Subject: [PATCH] Finish restricting 45 degree movement code to horizontal plane --- mods/ENTITIES/mcl_minecarts/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_minecarts/functions.lua b/mods/ENTITIES/mcl_minecarts/functions.lua index 20ece5f9c..8d45a4cd9 100644 --- a/mods/ENTITIES/mcl_minecarts/functions.lua +++ b/mods/ENTITIES/mcl_minecarts/functions.lua @@ -370,7 +370,7 @@ function mcl_minecarts.get_rail_direction(self, pos_, dir) -- Check four 45 degree movement local next_rails_dir = get_rail_direction_inner(vector.add(pos, new_dir), new_dir) - if dir.y == 0 and vector.equals(next_rails_dir, dir) and not vector.equals(new_dir, next_rails_dir) then + if next_rails_dir.y == 0 and vector.equals(next_rails_dir, dir) and not vector.equals(new_dir, next_rails_dir) then return vector.add(new_dir, next_rails_dir) end