summaryrefslogtreecommitdiff
path: root/mesecons_lamp
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_lamp')
-rw-r--r--mesecons_lamp/init.lua4
1 files changed, 2 insertions, 2 deletions
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
}}
})