diff options
author | orwell96 <orwell@bleipb.de> | 2019-03-15 17:12:10 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-03-15 17:39:31 +0100 |
commit | 1227456d46a5e47fa744c37bbf92e05515a871a2 (patch) | |
tree | fdbe60e91c32c6eefe8518b23c8633c98b46f78a /advtrains_interlocking/ars.lua | |
parent | c90411b880eac30d208508af6960f3415a8b09c6 (diff) | |
download | advtrains-1227456d46a5e47fa744c37bbf92e05515a871a2.tar.gz advtrains-1227456d46a5e47fa744c37bbf92e05515a871a2.tar.bz2 advtrains-1227456d46a5e47fa744c37bbf92e05515a871a2.zip |
Ugly workaround for green signals bug
Diffstat (limited to 'advtrains_interlocking/ars.lua')
-rw-r--r-- | advtrains_interlocking/ars.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/advtrains_interlocking/ars.lua b/advtrains_interlocking/ars.lua index dd5ff40..ef5d0da 100644 --- a/advtrains_interlocking/ars.lua +++ b/advtrains_interlocking/ars.lua @@ -124,5 +124,8 @@ function advtrains.interlocking.ars_check(sigd, train) --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) + else + -- just "punch" routesetting, just in case callback got lost. + minetest.after(0, il.route.update_route, sigd, tcbs, nil, nil) end end |