From a8a4426f1b95a361c2614ac903798a83383c53cc Mon Sep 17 00:00:00 2001 From: Dan Ports Date: Sun, 17 May 2020 19:26:28 -0600 Subject: [PATCH] #16: Fixed path structure issue. --- src/railrouter/startup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/railrouter/startup b/src/railrouter/startup index 07dc5ea..655d1d3 100644 --- a/src/railrouter/startup +++ b/src/railrouter/startup @@ -142,7 +142,7 @@ function minecartDetected(detection) return end - local edge = path[1] + local edge = next(path.edges) if edge == nil then log.warn(string.format("Ignoring detection: Path to destination %s is empty", railnetwork.formatLocation(trip.destination))) return