Fix messages in craft command

此提交包含在:
Jean-Patrick Guerrero
2019-10-04 00:52:06 +02:00
父節點 5446e0dbdd
當前提交 98a09f4d4b
共有 2 個檔案被更改,包括 13 行新增18 行删除

查看文件

@@ -1745,23 +1745,19 @@ function craftguide.show(name, item, show_usages)
reset_data(data)
item = reg_items[item] and item or query_item
local recipes, usages = get_recipes(item, data, player)
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 item"))
end
return false, msg(name, S("You don't know a recipe or usage for this item"))
end
data.query_item = item
data.recipes, data.usages = get_recipes(item, data, player)
if not data.recipes and not data.usages then
if recipes_cache[item] then
return false, msg(name, S("You don't know a recipe for this node"))
end
if usages_cache[item] then
return false, msg(name, S("You don't know an usage for this node"))
end
if not recipes_cache[item] and not usages_cache[item] then
return false, msg(name, S("No recipe or usage for this node"))
end
end
data.recipes = recipes
data.usages = usages
if sfinv_only then
data.show_usages = show_usages

查看文件

@@ -19,9 +19,8 @@ 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 for this node=
You don't know an usage for this node=
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=
Entity=
Craftitem=