aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-07-04 17:48:33 +0200
committerorwell96 <orwell@bleipb.de>2018-07-04 17:48:33 +0200
commit031aab4633f6f140a2ffda4f00b6e0d743cf681a (patch)
treed43a3e7fac033676969a34ad45e81b7db105448b /advtrains
parent9586a4d70922e24ba45ef018fc48455f31c4cfbb (diff)
downloadadvtrains-031aab4633f6f140a2ffda4f00b6e0d743cf681a.tar.gz
advtrains-031aab4633f6f140a2ffda4f00b6e0d743cf681a.tar.bz2
advtrains-031aab4633f6f140a2ffda4f00b6e0d743cf681a.zip
Signal assignment and route programming procedure
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/nodedb.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua
index 7433042..edb3329 100644
--- a/advtrains/nodedb.lua
+++ b/advtrains/nodedb.lua
@@ -133,7 +133,9 @@ end
function ndb.swap_node(pos, node, no_inval)
- minetest.swap_node(pos, node)
+ if minetest.get_node_or_nil(pos) then
+ minetest.swap_node(pos, node)
+ end
ndb.update(pos, node)
end
@@ -294,6 +296,5 @@ minetest.register_chatcommand("at_sync_ndb",
return true, text
end)
end,
- privs = {train_operator=true}, -- Require the "privs" privilege to run
})