summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Patrick Guerrero <kilbith@users.noreply.github.com>2018-05-29 20:09:54 +0200
committerGitHub <noreply@github.com>2018-05-29 20:09:54 +0200
commitb32d42cb004118684b401eb339a11593f591010c (patch)
tree46bdc3e5e90ea80808406116659436a3b7cfe711
parent2ecd0543a950dd741621962682b350627840a717 (diff)
parent2b23a887cf75e9c5f936e88b4092433590d220a9 (diff)
Merge pull request #32 from Wuzzy2/not_in_craft_guide
Hide recipes for items with not_in_craft_guide=1
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 6538c83..78cb227 100644
--- a/init.lua
+++ b/init.lua
@@ -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