aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-04-23 22:30:33 +0200
committerorwell96 <orwell@bleipb.de>2019-04-23 22:30:33 +0200
commitff9412976154f60982e3a2f32108e36a1fd61635 (patch)
tree6bebdef301692607aef24e420d3014d83b6d15d4 /advtrains
parentb56cda8695e4af6ebc5bf98c01de715979a219db (diff)
downloadadvtrains-ff9412976154f60982e3a2f32108e36a1fd61635.tar.gz
advtrains-ff9412976154f60982e3a2f32108e36a1fd61635.tar.bz2
advtrains-ff9412976154f60982e3a2f32108e36a1fd61635.zip
Fix occurences of old lzb_invalidate
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/wagons.lua8
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