Fix wall lever bug.

This commit is contained in:
Anthony Zhang 2012-06-22 14:35:42 -04:00
parent 39ed74bef7
commit d62a9269ac

@ -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
})