aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-18 21:19:03 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-18 21:19:03 +0100
commit6060556796f71328f781677cdbbd2b90fe4635d9 (patch)
treefa8220b8e217ca34892cfbfbe2b58f821272b0b1
parent7ab41542166989a80920138b85add399927631e2 (diff)
downloadadvtrains-6060556796f71328f781677cdbbd2b90fe4635d9.tar.gz
advtrains-6060556796f71328f781677cdbbd2b90fe4635d9.tar.bz2
advtrains-6060556796f71328f781677cdbbd2b90fe4635d9.zip
Make signals work with the nodedb again
-rw-r--r--advtrains/advtrains/signals.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains/advtrains/signals.lua b/advtrains/advtrains/signals.lua
index 59c5af1..1a5a2b0 100644
--- a/advtrains/advtrains/signals.lua
+++ b/advtrains/advtrains/signals.lua
@@ -33,11 +33,11 @@ for r,f in pairs({on="off", off="on"}) do
},
mesecons = {effector = {
["action_"..f] = function (pos, node)
- advtrains.np.swap_node(pos, {name = "advtrains:retrosignal_"..f..rotation, param2 = node.param2})
+ advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_"..f..rotation, param2 = node.param2})
end
}},
on_rightclick=function(pos, node, clicker)
- advtrains.np.swap_node(pos, {name = "advtrains:retrosignal_"..f..rotation, param2 = node.param2})
+ advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_"..f..rotation, param2 = node.param2})
end,
})
advtrains.trackplacer.add_worked("advtrains:retrosignal", r, rotation, nil)
@@ -66,11 +66,11 @@ for r,f in pairs({on="off", off="on"}) do
sunlight_propagates=true,
mesecons = {effector = {
["action_"..f] = function (pos, node)
- minetest.swap_node(pos, {name = "advtrains:signal_"..f..rotation, param2 = node.param2})
+ advtrains.ndb.swap_node(pos, {name = "advtrains:signal_"..f..rotation, param2 = node.param2})
end
}},
on_rightclick=function(pos, node, clicker)
- minetest.swap_node(pos, {name = "advtrains:signal_"..f..rotation, param2 = node.param2})
+ advtrains.ndb.swap_node(pos, {name = "advtrains:signal_"..f..rotation, param2 = node.param2})
end,
})
advtrains.trackplacer.add_worked("advtrains:signal", r, rotation, nil)