Merge pull request #32 from Wuzzy2/not_in_craft_guide

Hide recipes for items with not_in_craft_guide=1
This commit is contained in:
Jean-Patrick Guerrero 2018-05-29 20:09:54 +02:00 committed by GitHub
commit b32d42cb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -302,7 +302,7 @@ function craftguide:get_init_items()
local items_list, counter = {}, 0
for name, def in pairs(reg_items) do
local is_fuel = get_fueltime(name) > 0
if not (def.groups.not_in_creative_inventory == 1) and
if (not (def.groups.not_in_craft_guide == 1 or def.groups.not_in_creative_inventory == 1)) and
(get_recipe(name).items or is_fuel) and
def.description and def.description ~= "" then