aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/atc_rail.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index f4b3337..bc1e00e 100644
--- a/advtrains_luaautomation/atc_rail.lua
+++ b/advtrains_luaautomation/atc_rail.lua
@@ -58,9 +58,7 @@ function r.fire_event(pos, evtdata)
return false
end
train.line = line .. ""
- if advtrains.interlocking then
- advtrains.interlocking.lzb_invalidate(train)
- end
+ minetest.after(0, advtrains.invalidate_path, train_id)
return true
end,
get_line = function()
@@ -71,9 +69,7 @@ function r.fire_event(pos, evtdata)
return false
end
train.routingcode = rc
- if advtrains.interlocking then
- advtrains.interlocking.lzb_invalidate(train)
- end
+ minetest.after(0, advtrains.invalidate_path, train_id)
return true
end,
get_rc = function()