Add new group: not_in_craft_guide
This commit is contained in:
parent
64fe6f3f80
commit
d0207a6f69
3 changed files with 10 additions and 2 deletions
|
@ -300,7 +300,8 @@ 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 (get_recipe(name).items or is_fuel)
|
||||
if (not def.groups.not_in_craft_guide or def.groups.not_in_raft_guide == 0)
|
||||
and (get_recipe(name).items or is_fuel)
|
||||
and def.description and def.description ~= "" then
|
||||
counter = counter + 1
|
||||
items_list[counter] = name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue