mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-24 09:20:18 +01:00
Fix Bug: Apply Rules on removal
This commit is contained in:
parent
11ae41f119
commit
730537f013
@ -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
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user