sorcery  Diff

Differences From Artifact [54869bc440]:

To Artifact [e06af858b3]:


   309    309   			on_construct = m.construct;
   310    310   			on_rightclick = mode ~= 'gem' and n.button or nil;
   311    311   			on_punch = n.button and function(pos,node,puncher)
   312    312   				if puncher and puncher:get_wielded_item():is_empty() then
   313    313   					n.button(pos)
   314    314   				end
   315    315   			end or nil;
   316         -			after_place_node = function(...) autoselect(...) end;
          316  +			after_place_node = function(...)
          317  +				autoselect(...)
          318  +				-- these are not ley devices but they still affect the
          319  +				-- energy consumption of the ley device they are attached
          320  +				-- to, so we need to manually run the notification routine
          321  +				-- when they are placed or dug
          322  +				sorcery.ley.notify(...)
          323  +			end;
   317    324   			allow_metadata_inventory_put = m.allowput;
   318    325   			_sorcery = {
   319    326   				attune = (mode == 'attune') and n.attune or nil;
   320    327   			};
   321    328   			after_dig_node = function(...)
   322    329   				autoselect(...)
   323    330   				sorcery.lib.node.purge_container(...)
          331  +				sorcery.lib.node.notifyneighbors(...)
   324    332   			end;
   325    333   			groups = {
   326    334   				cracky = 2;
   327    335   				sorcery_magitech = 1;
   328    336   			};
   329    337   		})
   330    338   	end
   331    339   end