aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2017-12-18 23:44:01 +0100
committerorwell96 <orwell@bleipb.de>2017-12-18 23:44:01 +0100
commite3b70469687116437e90aedf0b0be61cf4a8dc3e (patch)
treebf631aff79a4c3710ef20a13ac11abec7c2ab756 /advtrains/nodedb.lua
parent8a51a10a61626c2190b32f06a52dbe20cdf1d04c (diff)
downloadadvtrains-e3b70469687116437e90aedf0b0be61cf4a8dc3e.tar.gz
advtrains-e3b70469687116437e90aedf0b0be61cf4a8dc3e.tar.bz2
advtrains-e3b70469687116437e90aedf0b0be61cf4a8dc3e.zip
Remove path invalidation statement.
Caused problems on multiple detector rails in a row, because paths got cleared in-between a train step Also optimize some code
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r--advtrains/nodedb.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua
index a4fbf0a..ab49192 100644
--- a/advtrains/nodedb.lua
+++ b/advtrains/nodedb.lua
@@ -135,9 +135,6 @@ end
function ndb.swap_node(pos, node, no_inval)
minetest.swap_node(pos, node)
ndb.update(pos, node)
- if not no_inval then
- advtrains.invalidate_all_paths(pos)
- end
end
function ndb.update(pos, pnode)