summaryrefslogtreecommitdiff
path: root/mesecons_button
diff options
context:
space:
mode:
authorFlorian Euchner <norrepli@gmail.com>2015-10-04 12:09:15 +0200
committerFlorian Euchner <norrepli@gmail.com>2015-10-04 12:09:15 +0200
commit6ef3b965dffcc7fe95a793a2fb059cf20b9316ad (patch)
treed817a7b120dc88791866464b3639a1d22b167be6 /mesecons_button
parentd95ccf86f8f2ad05d9ba4cf007e6ee1422fb25f5 (diff)
parent6e326a6a03a989f887f7e8da2be3b5b7cdb64619 (diff)
downloadmesecons-6ef3b965dffcc7fe95a793a2fb059cf20b9316ad.tar
mesecons-6ef3b965dffcc7fe95a793a2fb059cf20b9316ad.tar.gz
mesecons-6ef3b965dffcc7fe95a793a2fb059cf20b9316ad.tar.bz2
mesecons-6ef3b965dffcc7fe95a793a2fb059cf20b9316ad.tar.xz
mesecons-6ef3b965dffcc7fe95a793a2fb059cf20b9316ad.zip
Merge pull request #239 from beyondlimits/master
Use right mouse button instead of left to press button and change state of switch and lever.
Diffstat (limited to 'mesecons_button')
-rw-r--r--mesecons_button/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua
index ead688e..a61e5e3 100644
--- a/mesecons_button/init.lua
+++ b/mesecons_button/init.lua
@@ -40,7 +40,7 @@ minetest.register_node("mesecons_button:button_off", {
},
groups = {dig_immediate=2, mesecon_needs_receiver = 1},
description = "Button",
- on_punch = function (pos, node)
+ on_rightclick = function (pos, node)
minetest.swap_node(pos, {name = "mesecons_button:button_on", param2=node.param2})
mesecon.receptor_on(pos, mesecon.rules.buttonlike_get(node))
minetest.sound_play("mesecons_button_push", {pos=pos})