mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 10:53:43 +01:00
Minor fix
This commit is contained in:
parent
7e70ccab27
commit
24fdd07f56
6
init.lua
6
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,10 +2315,14 @@ register_command("craft", {
|
||||
local node = core.get_node(look_at)
|
||||
|
||||
if node.name ~= "air" then
|
||||
local def = reg_items[node.name]
|
||||
|
||||
if def then
|
||||
node_name = node.name
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if not node_name then
|
||||
return false, msg(name, S"No node pointed")
|
||||
|
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user