From 6060556796f71328f781677cdbbd2b90fe4635d9 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 18 Jan 2017 21:19:03 +0100 Subject: Make signals work with the nodedb again --- advtrains/advtrains/signals.lua | 8 ++++---- 1 file 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) -- cgit v1.2.3