sorcery  Diff

Differences From Artifact [3c9b60f14d]:

To Artifact [45fd80ebe6]:


   294    294   	for _,state in pairs{'open','closed'} do
   295    295   		local id_closed = id .. '_closed'
   296    296   		local id_current = (state == 'closed' and id_closed) or id
   297    297   		local desc = (kind.temp_name and sorcery.lib.str.capitalize(kind.temp_name) .. ' kiln') or 'Kiln'
   298    298   		minetest.register_node(id_current, {
   299    299   			description = desc;
   300    300   			drawtype = "mesh";
          301  +			after_dig_node = sorcery.lib.node.purge_container;
   301    302   			mesh = 'sorcery-kiln-' .. state .. '.obj';
   302    303   			drop = id;
   303    304   			groups = {
   304    305   				cracky = (state == 'open' and 2) or nil;
   305    306   			};
   306    307   			sunlight_propagates = true;
   307    308   			paramtype1 = 'light';
................................................................................
   376    377   	local id = 'sorcery:smelter_' .. kind.material .. kind.size_name
   377    378   	kind.id = id
   378    379   	for _, active in pairs {false, true} do
   379    380   		minetest.register_node((active and id .. '_active') or id, {
   380    381   			_proto = kind;
   381    382   			description = desc;
   382    383   			drop = id;
          384  +			after_dig_node = sorcery.lib.node.purge_container;
   383    385   			groups = {
   384    386   				cracky = (active and 2) or nil;
   385    387   			};
   386    388   			paramtype2 = 'facedir';
   387    389   			light_source = (active and 9) or 0;
   388    390   			on_construct = function(pos)
   389    391   				local meta = minetest.get_meta(pos)