From c7868a2952602e94c0ba8864190257f1664d415e Mon Sep 17 00:00:00 2001 From: random-geek <35757396+random-geek@users.noreply.github.com> Date: Wed, 3 Jul 2019 11:33:11 -0700 Subject: [PATCH] Ignore items in group 'not_in_craft_guide' --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 05819b7..b436f6a 100644 --- a/api.lua +++ b/api.lua @@ -54,7 +54,8 @@ cg.build_item_list = function() for item, def in pairs(minetest.registered_items) do if def.description and def.description ~= "" and - minetest.get_item_group(item, "not_in_creative_inventory") == 0 then + minetest.get_item_group(item, "not_in_creative_inventory") == 0 and + minetest.get_item_group(item, "not_in_craft_guide") == 0 then table.insert(cg.items_all.list, item) cg.crafts[item] = minetest.get_all_craft_recipes(item) or {} end