@@ -234,8 +234,9 @@ groups = { cracky = 2, oddly_breakable_by_hand = 2 }; sunlight_propagates = true; selection_box = hitbox; collision_box = hitbox; + after_dig_node = sorcery.lib.node.purge_container; tiles = { "default_obsidian.png"; "default_steel_block.png"; "default_bronze_block.png"; @@ -415,8 +416,18 @@ else sorcery.enchant.set(tool,ench,true) end puncher:set_wielded_item(tool) + + -- perform leyline checks and call notify if necessary + if minetest.get_item_group(node.name, 'sorcery_ley_device') ~= 0 then + for _,p in pairs(sorcery.ley.txofs) do + local sum = vector.add(pos,p) + if minetest.get_item_group(minetest.get_node(sum).name, 'sorcery_ley_device') ~= 0 then + sorcery.ley.notify(sum) + end + end + end end) minetest.register_chatcommand('enchants', { description = 'Log information about the currently held object\'s enchantment';