mirror of
				https://github.com/mt-mods/pipeworks.git
				synced 2025-10-31 05:15:29 +01:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			20200603-1
			...
			5cfe8d893f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5cfe8d893f | |||
| 975e20f704 | |||
| 2693e2ecbb | |||
|  | c93df73a5c | 
| @@ -67,8 +67,11 @@ local function run_autocrafter(pos, elapsed) | ||||
| 	local inventory = meta:get_inventory() | ||||
| 	local craft = get_craft(pos, inventory) | ||||
| 	local output_item = craft.output.item | ||||
| 	-- NALC: existence de limitgroup ? | ||||
| 	local limitcraft = minetest.get_item_group(output_item:get_name(), "limitcraft") or 0 | ||||
| 	-- only use crafts that have an actual result | ||||
| 	if output_item:is_empty() then | ||||
| 	-- NALC: ou si l'item n'est pas dans le group limitcraft | ||||
| 	if output_item:is_empty() or limitcraft > 0 then | ||||
| 		meta:set_string("infotext", S("unconfigured Autocrafter: unknown recipe")) | ||||
| 		return false | ||||
| 	end | ||||
|   | ||||
							
								
								
									
										1
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								mod.conf
									
									
									
									
									
								
							| @@ -2,4 +2,3 @@ name = pipeworks | ||||
| description = This mod uses mesh nodes and nodeboxes to supply a complete set of 3D pipes and tubes, along with devices that work with them. | ||||
| depends = default, basic_materials, screwdriver | ||||
| optional_depends = mesecons, mesecons_mvps, digilines, signs_lib | ||||
| min_minetest_version = 5.2.0 | ||||
|   | ||||
| @@ -80,7 +80,7 @@ if digiline_enabled and pipeworks.enable_digiline_detector_tube then | ||||
|  | ||||
| 						local setchan = meta:get_string("channel") | ||||
|  | ||||
| 						digiline:receptor_send(pos, digiline.rules.default, setchan, stack:to_table()) | ||||
| 						digiline:receptor_send(pos, digiline.rules.default, setchan, stack:to_string()) | ||||
|  | ||||
| 						return pipeworks.notvel(pipeworks.meseadjlist, velocity) | ||||
| 					end}, | ||||
|   | ||||
| @@ -58,7 +58,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e | ||||
|  | ||||
| 	local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1} | ||||
| 	local tubedesc = string.format("%s %s", desc, dump(connects)) | ||||
| 	local iimg = type(plain[1]) == "table" and plain[1].name or plain[1] | ||||
| 	local iimg = plain[1] | ||||
| 	local wscale = {x = 1, y = 1, z = 1} | ||||
|  | ||||
| 	if #connects == 0 then | ||||
|   | ||||
| @@ -40,7 +40,7 @@ local can_tool_dig_node = function(nodename, toolcaps, toolname) | ||||
| 		-- but a player holding one can - the game seems to fall back to the hand. | ||||
| 		-- fall back to checking the hand's properties if the tool isn't the correct one. | ||||
| 		local hand_caps = minetest.registered_items[""].tool_capabilities | ||||
| 		diggable = minetest.get_dig_params(nodegroups, hand_caps).diggable | ||||
| 		diggable = minetest.get_dig_params(nodegroups, hand_caps) | ||||
| 	end | ||||
| 	return diggable | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user