summaryrefslogtreecommitdiff
path: root/mesecons_walllever
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_walllever')
-rw-r--r--mesecons_walllever/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_walllever/init.lua b/mesecons_walllever/init.lua
index a35d9f1..89ca88d 100644
--- a/mesecons_walllever/init.lua
+++ b/mesecons_walllever/init.lua
@@ -33,7 +33,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
description="Lever",
on_punch = function (pos, node)
minetest.swap_node(pos, {name = "mesecons_walllever:wall_lever_on", param2 = node.param2})
- mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node))
+ mesecon.receptor_on(pos, mesecon.rules.buttonlike_get(node))
minetest.sound_play("mesecons_lever", {pos=pos})
end,
sounds = default.node_sound_wood_defaults(),
@@ -75,7 +75,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
description="Lever",
on_punch = function (pos, node)
minetest.swap_node(pos, {name = "mesecons_walllever:wall_lever_off", param2 = node.param2})
- mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node))
+ mesecon.receptor_off(pos, mesecon.rules.buttonlike_get(node))
minetest.sound_play("mesecons_lever", {pos=pos})
end,
sounds = default.node_sound_wood_defaults(),