Finish restricting 45 degree movement code to horizontal plane

This commit is contained in:
teknomunk 2024-11-03 07:44:28 -06:00
parent 38d0bf6c4a
commit b911de050d
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ function mcl_minecarts.get_rail_direction(self, pos_, dir)
-- Check four 45 degree movement -- Check four 45 degree movement
local next_rails_dir = get_rail_direction_inner(vector.add(pos, new_dir), new_dir) 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) return vector.add(new_dir, next_rails_dir)
end end