diff options
author | Jeija <norrepli@gmail.com> | 2012-06-21 18:41:51 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-06-21 18:41:51 +0200 |
commit | 730537f01320c7278b59cccf1b70959ba9569488 (patch) | |
tree | 7d80c1e37ec75ae72a92efc375c5af4d63b99d9c | |
parent | 11ae41f1192d798d713a34c437cd667711241ae3 (diff) | |
download | mesecons-730537f01320c7278b59cccf1b70959ba9569488.tar mesecons-730537f01320c7278b59cccf1b70959ba9569488.tar.gz mesecons-730537f01320c7278b59cccf1b70959ba9569488.tar.bz2 mesecons-730537f01320c7278b59cccf1b70959ba9569488.tar.xz mesecons-730537f01320c7278b59cccf1b70959ba9569488.zip |
Fix Bug: Apply Rules on removal
-rw-r--r-- | mesecons_button/init.lua | 4 |
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 }) |