mirror of
				https://github.com/mt-mods/pipeworks.git
				synced 2025-11-04 10:15:32 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			2019-10-03
			...
			c93df73a5c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c93df73a5c | 
@@ -66,8 +66,11 @@ local function run_autocrafter(pos, elapsed)
 | 
				
			|||||||
	local inventory = meta:get_inventory()
 | 
						local inventory = meta:get_inventory()
 | 
				
			||||||
	local craft = get_craft(pos, inventory)
 | 
						local craft = get_craft(pos, inventory)
 | 
				
			||||||
	local output_item = craft.output.item
 | 
						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
 | 
						-- 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", "unconfigured Autocrafter: unknown recipe")
 | 
							meta:set_string("infotext", "unconfigured Autocrafter: unknown recipe")
 | 
				
			||||||
		return false
 | 
							return false
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user