From f46bc329de7bfc35f64a17822247372e6fa3a1cb Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 30 Nov 2013 20:20:01 -0500 Subject: Use minetest.swap_node() instead of mesecons' version, Minor code changes here and there to facilitate this. --- mesecons_lamp/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesecons_lamp') diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 938fa32..6cdae2d 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -25,7 +25,7 @@ minetest.register_node("mesecons_lamp:lamp_on", { sounds = default.node_sound_glass_defaults(), mesecons = {effector = { action_off = function (pos, node) - mesecon:swap_node(pos, "mesecons_lamp:lamp_off") + minetest.swap_node(pos, {name = "mesecons_lamp:lamp_off", param2 = node.param2}) end }} }) @@ -46,7 +46,7 @@ minetest.register_node("mesecons_lamp:lamp_off", { sounds = default.node_sound_glass_defaults(), mesecons = {effector = { action_on = function (pos, node) - mesecon:swap_node(pos, "mesecons_lamp:lamp_on") + minetest.swap_node(pos, {name = "mesecons_lamp:lamp_on", param2 = node.param2}) end }} }) -- cgit v1.2.3