aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-06-12 12:32:46 +0200
committerorwell96 <orwell@bleipb.de>2021-02-10 16:36:24 +0100
commit61329c11a28ca0d68f95f189d3a66c373d7dddc3 (patch)
tree8e57504f17c86efdadf2b8494e3427e4f947a001 /advtrains/nodedb.lua
parentd3b2f614be059e65869a615fe319118c0a354995 (diff)
downloadadvtrains-61329c11a28ca0d68f95f189d3a66c373d7dddc3.tar.gz
advtrains-61329c11a28ca0d68f95f189d3a66c373d7dddc3.tar.bz2
advtrains-61329c11a28ca0d68f95f189d3a66c373d7dddc3.zip
Start using path_invalidate_ahead()
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r--advtrains/nodedb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua
index 048d5b4..4539529 100644
--- a/advtrains/nodedb.lua
+++ b/advtrains/nodedb.lua
@@ -246,7 +246,7 @@ function ndb.update(pos, pnode)
local resid = (nid * 4) + (l2b(node.param2 or 0))
ndbset(pos.x, pos.y, pos.z, resid )
--atdebug("nodedb: updating node", pos, "stored nid",nid,"assigned",ndb_nodeids[nid],"resulting cid",resid)
- minetest.after(0, advtrains.invalidate_all_paths, pos)
+ advtrains.invalidate_all_paths_ahead(pos)
else
--at this position there is no longer a node that needs to be tracked.
--atdebug("nodedb: updating node", pos, "cleared")