Skip to content

Commit

Permalink
Ignore items in group 'not_in_craft_guide'
Browse files Browse the repository at this point in the history
  • Loading branch information
random-geek committed Jul 3, 2019
1 parent 83ab26f commit c7868a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7868a2

Please sign in to comment.