aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-07-07 14:25:47 +0200
committerorwell96 <orwell@bleipb.de>2020-07-07 14:25:47 +0200
commitf33bb563e78a62cc8fb2e1483a6cb9a2436b708a (patch)
treea3690d6dbc6a04c82e4aad78f3fb5d2f90fa533d /advtrains_interlocking
parent96236c04dc790cbcd4d8cb52aee5563f54e736aa (diff)
downloadadvtrains-f33bb563e78a62cc8fb2e1483a6cb9a2436b708a.tar.gz
advtrains-f33bb563e78a62cc8fb2e1483a6cb9a2436b708a.tar.bz2
advtrains-f33bb563e78a62cc8fb2e1483a6cb9a2436b708a.zip
Add "Fallback state" for freed routes, move p_mesecon_iface.lua to core
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/routesetting.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains_interlocking/routesetting.lua b/advtrains_interlocking/routesetting.lua
index 1c9ee5a..575b053 100644
--- a/advtrains_interlocking/routesetting.lua
+++ b/advtrains_interlocking/routesetting.lua
@@ -206,6 +206,7 @@ function ilrs.free_route_locks_indiv(pts, ts, nocallbacks)
-- TODO use luaautomation timers?
if not nocallbacks then
minetest.after(0, ilrs.update_waiting, "lck", pts)
+ minetest.after(0.5, advtrains.set_fallback_state, minetest.string_to_pos(pts))
end
end
-- frees all route locks, even manual ones set with the tool, at a specific position