diff options
author | Anthony Zhang <azhang9@gmail.com> | 2012-06-22 14:35:42 -0400 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2012-06-22 14:35:42 -0400 |
commit | d62a9269acbbab5802adfc619c43e2af981f294c (patch) | |
tree | 40076f611f23e2395d066d0aa3b8ffa2334c7863 | |
parent | 39ed74bef70d3b038c32c948546da3e5f2bbe8af (diff) | |
download | mesecons-d62a9269acbbab5802adfc619c43e2af981f294c.tar mesecons-d62a9269acbbab5802adfc619c43e2af981f294c.tar.gz mesecons-d62a9269acbbab5802adfc619c43e2af981f294c.tar.bz2 mesecons-d62a9269acbbab5802adfc619c43e2af981f294c.tar.xz mesecons-d62a9269acbbab5802adfc619c43e2af981f294c.zip |
Fix wall lever bug.
-rw-r--r-- | mesecons_walllever/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_walllever/init.lua b/mesecons_walllever/init.lua index 6f1c310..4f27a00 100644 --- a/mesecons_walllever/init.lua +++ b/mesecons_walllever/init.lua @@ -28,8 +28,8 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { groups = {dig_immediate=2}, drop = '"mesecons_walllever:wall_lever_off" 1', description="Lever", - 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 }) |