Support not_in_craft_guide group
parent
6d5fed8753
commit
cef71906c1
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue