Fix for path invalidation within update callbacks (issue was caused by detector rails)
This commit is contained in:
parent
5f290819cd
commit
adc8db22fb
|
@ -156,7 +156,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)
|
||||
advtrains.invalidate_all_paths(pos)
|
||||
minetest.after(0, advtrains.invalidate_all_paths, pos)
|
||||
else
|
||||
--at this position there is no longer a node that needs to be tracked.
|
||||
--atdebug("nodedb: updating node", pos, "cleared")
|
||||
|
|
Loading…
Reference in New Issue