summaryrefslogtreecommitdiff
path: root/mesecons_button
diff options
context:
space:
mode:
authorWhiskers75 - <whiskers75@yopmail.com>2012-06-21 18:56:19 +0100
committerWhiskers75 - <whiskers75@yopmail.com>2012-06-21 18:56:19 +0100
commitbfc594a8d06d7279165f5ddac36bcec8b1eb3896 (patch)
tree65c1d11570ac503061994cbb91d594baacc9be39 /mesecons_button
parent28bca749be9779dcb483ca29f1c2855aad1f0bcb (diff)
parent1942663af5e979f2f5eabc337ae05c19b58379be (diff)
downloadmesecons-bfc594a8d06d7279165f5ddac36bcec8b1eb3896.tar
mesecons-bfc594a8d06d7279165f5ddac36bcec8b1eb3896.tar.gz
mesecons-bfc594a8d06d7279165f5ddac36bcec8b1eb3896.tar.bz2
mesecons-bfc594a8d06d7279165f5ddac36bcec8b1eb3896.tar.xz
mesecons-bfc594a8d06d7279165f5ddac36bcec8b1eb3896.zip
Merge branch 'master' of github.com:Jeija/minetest-mod-mesecons
Diffstat (limited to 'mesecons_button')
-rw-r--r--mesecons_button/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua
index 0096df3..fbf7c0f 100644
--- a/mesecons_button/init.lua
+++ b/mesecons_button/init.lua
@@ -35,8 +35,8 @@ minetest.register_node("mesecons_button:button_on", {
groups = {dig_immediate=2},
drop = 'mesecons_button:button_off',
description = "Button",
- after_dig_node = function(pos)
- mesecon:receptor_off(pos, mesecon.button_get_rules(minetest.env:get_node(pos).param2))
+ after_dig_node = function(pos, oldnode)
+ mesecon:receptor_off(pos, mesecon.button_get_rules(oldnode.param2))
end
})