forked from minetest-mods/craftguide
		
	Minor fix
This commit is contained in:
		
							
								
								
									
										10
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								init.lua
									
									
									
									
									
								
							@@ -2286,7 +2286,7 @@ function craftguide.show(name, item, show_usages)
 | 
			
		||||
	if not recipes and not usages then
 | 
			
		||||
		if not recipes_cache[item] and not usages_cache[item] then
 | 
			
		||||
			return false, msg(name, sprintf("%s: %s",
 | 
			
		||||
				S"No recipe or usage for this item", get_desc(item)))
 | 
			
		||||
				S"No recipe or usage for this node", clr("#ff0", get_desc(item))))
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		return false, msg(name, sprintf("%s: %s",
 | 
			
		||||
@@ -2315,8 +2315,12 @@ register_command("craft", {
 | 
			
		||||
			local node = core.get_node(look_at)
 | 
			
		||||
 | 
			
		||||
			if node.name ~= "air" then
 | 
			
		||||
				node_name = node.name
 | 
			
		||||
				break
 | 
			
		||||
				local def = reg_items[node.name]
 | 
			
		||||
 | 
			
		||||
				if def then
 | 
			
		||||
					node_name = node.name
 | 
			
		||||
					break
 | 
			
		||||
				end
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ Collect items to reveal more recipes=Collecte des items pour révéler plus de r
 | 
			
		||||
Show recipe(s) of the pointed node=Affiche les recettes du bloc visé
 | 
			
		||||
No node pointed=Aucun bloc visé
 | 
			
		||||
You don't know a recipe or usage for this item=Vous ne connaissez aucune recette pour ce bloc
 | 
			
		||||
No recipe or usage for this item=Aucune recette pour ce bloc
 | 
			
		||||
No recipe or usage for this node=Aucune recette pour ce bloc
 | 
			
		||||
Digging=Destruction
 | 
			
		||||
Digging (by chance)=Destruction (par chance)
 | 
			
		||||
@1 of chance to drop=@1 de chance de tomber
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ Collect items to reveal more recipes=
 | 
			
		||||
Show recipe(s) of the pointed node=
 | 
			
		||||
No node pointed=
 | 
			
		||||
You don't know a recipe or usage for this item=
 | 
			
		||||
No recipe or usage for this item=
 | 
			
		||||
No recipe or usage for this node=
 | 
			
		||||
Digging=
 | 
			
		||||
Digging (by chance)=
 | 
			
		||||
@1 of chance to drop=
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user