summaryrefslogtreecommitdiff
path: root/railtrack/railtrack.lua
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2016-01-29 19:56:16 +0000
committerstujones11 <stujones111@gmail.com>2016-01-29 20:11:53 +0000
commit99f5ffddfb603068249d1ac0b9682d8531213842 (patch)
treed2fe5d1da0c4a2661551b7abfaefd58fcf2e7065 /railtrack/railtrack.lua
parent7c967dc6de05975a933576ccf82dbabfd7cb3eb7 (diff)
Prevent carts from travelling through nodes
Diffstat (limited to 'railtrack/railtrack.lua')
-rw-r--r--railtrack/railtrack.lua2
1 files changed, 1 insertions, 1 deletions
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