From 99f5ffddfb603068249d1ac0b9682d8531213842 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 29 Jan 2016 19:56:16 +0000 Subject: Prevent carts from travelling through nodes --- railtrack/railtrack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railtrack/railtrack.lua') diff --git a/railtrack/railtrack.lua b/railtrack/railtrack.lua index a72898f..75a62a6 100644 --- a/railtrack/railtrack.lua +++ b/railtrack/railtrack.lua @@ -192,7 +192,7 @@ end function railtrack:get_connections(pos) local connections = {} - for y = -1, 1 do + for y = 1, -1, -1 do for x = -1, 1 do for z = -1, 1 do if math.abs(x) ~= math.abs(z) then -- cgit v1.2.3