diff options
-rw-r--r-- | advtrains_interlocking/ars.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains_interlocking/ars.lua b/advtrains_interlocking/ars.lua index 7180ca6..e20d189 100644 --- a/advtrains_interlocking/ars.lua +++ b/advtrains_interlocking/ars.lua @@ -58,6 +58,8 @@ function advtrains.interlocking.ars_check(sigd, train) local rteid = find_rtematch(tcbs.routes, train) if rteid then - il.route.update_route(sigd, tcbs, rteid, nil) + --delay routesetting, it should not occur inside train step + -- using after here is OK because that gets called on every path recalculation + minetest.after(0, il.route.update_route, sigd, tcbs, rteid, nil) end end |