diff options
author | Zefram <zefram@fysh.org> | 2014-05-01 20:44:16 +0100 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@yahoo.com> | 2014-05-02 12:21:10 +0200 |
commit | 79320c109c637378d89d2ea79d5e32d0db5a67d2 (patch) | |
tree | 5ca1b434626c7f9235b2c1670553d75e9a67f9bf /register.lua | |
parent | 12ef7f6393c393414bf7828033fac59f9c7c96bf (diff) |
Respect not_in_creative_inventory in group search
Diffstat (limited to 'register.lua')
-rw-r--r-- | register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/register.lua b/register.lua index ab97f02..31b12ae 100644 --- a/register.lua +++ b/register.lua @@ -162,7 +162,7 @@ local function compute_group_representative_item(groupspec) local groupname = string.sub(groupspec, 7) local candidate_items = {} for itemname, itemdef in pairs(minetest.registered_items) do - if itemdef.groups[groupname] and itemdef.groups[groupname] ~= 0 then + if (itemdef.groups.not_in_creative_inventory or 0) == 0 and (itemdef.groups[groupname] or 0) ~= 0 then table.insert(candidate_items, itemname) end end |