Fix Bug: Apply Rules on removal

master
Jeija 2012-06-21 18:41:51 +02:00
parent 11ae41f119
commit 730537f013
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ minetest.register_node("mesecons_button:button_on", {
groups = {dig_immediate=2}, groups = {dig_immediate=2},
drop = 'mesecons_button:button_off', drop = 'mesecons_button:button_off',
description = "Button", description = "Button",
after_dig_node = function(pos) after_dig_node = function(pos, oldnode)
mesecon:receptor_off(pos, mesecon.button_get_rules(minetest.env:get_node(pos).param2)) mesecon:receptor_off(pos, mesecon.button_get_rules(oldnode.param2))
end end
}) })