From 6e326a6a03a989f887f7e8da2be3b5b7cdb64619 Mon Sep 17 00:00:00 2001 From: Marcin Date: Thu, 1 Oct 2015 19:13:12 +0200 Subject: Use right mouse button instead of left to press button and change state of switch and lever. --- mesecons_switch/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_switch/init.lua') diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index 2b3c3ee..f52f083 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -4,7 +4,7 @@ mesecon.register_node("mesecons_switch:mesecon_switch", { paramtype2="facedir", description="Switch", sounds = default.node_sound_stone_defaults(), - on_punch = function (pos, node) + on_rightclick = function (pos, node) if(mesecon.flipstate(pos, node) == "on") then mesecon.receptor_on(pos) else -- cgit v1.2.3