mirror of
https://github.com/minetest-mods/craftguide.git
synced 2025-06-28 22:26:28 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
8e2903be03 |
9
init.lua
9
init.lua
@ -1747,9 +1747,12 @@ function craftguide.show(name, item, show_usages)
|
||||
item = reg_items[item] and item or query_item
|
||||
local recipes, usages = get_recipes(item, data, player)
|
||||
|
||||
if not recipes and not usages and
|
||||
not recipes_cache[item] and not usages_cache[item] then
|
||||
return false, msg(name, S("No recipe or usage for this node"))
|
||||
if not recipes and not usages then
|
||||
if not recipes_cache[item] and not usages_cache[item] then
|
||||
return false, msg(name, S("No recipe or usage for this node"))
|
||||
end
|
||||
|
||||
return false, msg(name, S("You don't know a recipe or usage for this node"))
|
||||
end
|
||||
|
||||
data.query_item = item
|
||||
|
@ -19,6 +19,7 @@ No item to show=
|
||||
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 node=
|
||||
No recipe or usage for this node=
|
||||
Node=
|
||||
Entity=
|
||||
|
Reference in New Issue
Block a user