From a961539931e1cfa84c0ea9d3151b7a8057028b41 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 29 Aug 2016 11:48:16 +0200 Subject: Just hide not_in_creative_inventory items --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index ac8a9b6..04fa027 100644 --- a/init.lua +++ b/init.lua @@ -892,7 +892,7 @@ local function gather_descs() else name = def.description end - if not (name == nil or name == "" or def.groups.not_in_doc or def.groups.not_in_creative_inventory or forced_items[id] == false) or forced then + if not (name == nil or name == "" or def.groups.not_in_doc or forced_items[id] == false) or forced then if help.longdesc[id] ~= nil then ld = help.longdesc[id] end @@ -902,7 +902,7 @@ local function gather_descs() if help.image[id] ~= nil then im = help.image[id] end - local hide = false + local hide = def.groups.not_in_creative_inventory == 1 local custom_image name = scrub_newlines(name) local infotable = { -- cgit v1.2.3