diff options
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r-- | advtrains/wagons.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 12fd74e..b67449d 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -885,9 +885,7 @@ function wagon:handle_bordcom_fields(pname, formname, fields) if fields.line~="" then
if fields.line ~= train.line then
train.line=fields.line
- if advtrains.interlocking then
- advtrains.interlocking.lzb_invalidate(train)
- end
+ minetest.after(0, advtrains.invalidate_path, train.id)
end
else
train.line=nil
@@ -897,9 +895,7 @@ function wagon:handle_bordcom_fields(pname, formname, fields) if fields.routingcode~="" then
if fields.routingcode ~= train.routingcode then
train.routingcode=fields.routingcode
- if advtrains.interlocking then
- advtrains.interlocking.lzb_invalidate(train)
- end
+ minetest.after(0, advtrains.invalidate_path, train.id)
end
else
train.routingcode=nil
|