summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-29 11:48:16 +0200
committerWuzzy <almikes@aol.com>2016-08-29 11:48:16 +0200
commita961539931e1cfa84c0ea9d3151b7a8057028b41 (patch)
tree1539441dd02da360b30d068ded6dea79cd955056
parent5b680134d4e86dc1ee084f91f507fc0d4d2b3001 (diff)
Just hide not_in_creative_inventory items
-rw-r--r--init.lua4
1 files 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 = {