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

Allow items to exclude their recipes from the recipes list
This commit is contained in:
Vanessa Ezekowitz 2016-07-14 07:45:09 -04:00 committed by GitHub
commit 1b40a02f1c

View File

@ -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