Compare commits

..

1 Commits
1.9.1 ... 1.9c

Author SHA1 Message Date
0e90d85423 Fix messages in craft command 2019-10-04 01:08:20 +02:00
2 changed files with 12 additions and 4 deletions

View File

@ -1747,9 +1747,16 @@ function craftguide.show(name, item, show_usages)
item = reg_items[item] and item or query_item item = reg_items[item] and item or query_item
local recipes, usages = get_recipes(item, data, player) local recipes, usages = get_recipes(item, data, player)
if not recipes and not usages and if not recipes and not usages then
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, S("No recipe or usage for this node")) return false, msg(name, fmt("%s: %s",
S("No recipe or usage for this item"),
get_desc(item)))
end
return false, msg(name, fmt("%s: %s",
S("You don't know a recipe or usage for this item"),
get_desc(item)))
end end
data.query_item = item data.query_item = item

View File

@ -19,7 +19,8 @@ No item to show=
Collect items to reveal more recipes= 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=
No recipe or usage for this node= You don't know a recipe or usage for this item=
No recipe or usage for this item=
Node= Node=
Entity= Entity=
Craftitem= Craftitem=