mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 19:03: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 and not usages then
|
||||||
if not recipes_cache[item] and not usages_cache[item] then
|
if not recipes_cache[item] and not usages_cache[item] then
|
||||||
return false, msg(name, sprintf("%s: %s",
|
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
|
end
|
||||||
|
|
||||||
return false, msg(name, sprintf("%s: %s",
|
return false, msg(name, sprintf("%s: %s",
|
||||||
@ -2315,10 +2315,14 @@ register_command("craft", {
|
|||||||
local node = core.get_node(look_at)
|
local node = core.get_node(look_at)
|
||||||
|
|
||||||
if node.name ~= "air" then
|
if node.name ~= "air" then
|
||||||
|
local def = reg_items[node.name]
|
||||||
|
|
||||||
|
if def then
|
||||||
node_name = node.name
|
node_name = node.name
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if not node_name then
|
if not node_name then
|
||||||
return false, msg(name, S"No node pointed")
|
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é
|
Show recipe(s) of the pointed node=Affiche les recettes du bloc visé
|
||||||
No node pointed=Aucun 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
|
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=Destruction
|
||||||
Digging (by chance)=Destruction (par chance)
|
Digging (by chance)=Destruction (par chance)
|
||||||
@1 of chance to drop=@1 de chance de tomber
|
@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=
|
Show recipe(s) of the pointed node=
|
||||||
No node pointed=
|
No node pointed=
|
||||||
You don't know a recipe or usage for this item=
|
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=
|
||||||
Digging (by chance)=
|
Digging (by chance)=
|
||||||
@1 of chance to drop=
|
@1 of chance to drop=
|
||||||
|
Loading…
Reference in New Issue
Block a user