Support not_in_craft_guide group

master
Wuzzy 2020-11-05 15:47:40 +01:00
parent 6d5fed8753
commit cef71906c1
2 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Action groups:
* `fake_liquid`: Node is registerd as liquid but it's not actually a liquid
* `flora`: This is a plant that spreads on Dirt with Grass
* `soil`: Usable by hoe
* `not_in_craft_guide`: Item won't appear in craft guide
Legacy groups:
* `flammable`: Considered flammable (Note: This game has no fire)

View File

@ -337,6 +337,7 @@ function craftguide:get_init_items()
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
not (def.groups.not_in_craft_guide == 1) and
(get_recipe(name).items or is_fuel) and
def.description and def.description ~= "" then