1
0
镜像自地址 https://github.com/minetest-mods/unified_inventory.git 已同步 2025-12-16 04:25:55 +01:00

Merge pull request #57 from pgimeno/exclude-items-from-recipes

Allow items to exclude their recipes from the recipes list
这个提交包含在:
Vanessa Ezekowitz
2016-07-14 07:45:09 -04:00
提交者 GitHub
当前提交 1b40a02f1c

查看文件

@@ -25,7 +25,8 @@ minetest.after(0.01, function()
for _,chk in pairs(recipe.items) do
local groupchk = string.find(chk, "group:")
if (not groupchk and not minetest.registered_items[chk])
or (groupchk and not unified_inventory.get_group_item(string.gsub(chk, "group:", "")).item) then
or (groupchk and not unified_inventory.get_group_item(string.gsub(chk, "group:", "")).item)
or minetest.get_item_group(chk, "exclude_from_craft_guide") ~= 0 then
unknowns = true
end
end