diff options
author | Wuzzy <almikes@aol.com> | 2016-08-05 05:24:10 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-05 05:24:10 +0200 |
commit | 536b76f46ca3d0728bb3dc96c43a2a256a6871f0 (patch) | |
tree | e9fa1a61486fdb4ce80982391626aaf4ded542de /init.lua | |
parent | ed340a63aadb51905d954b1bdc9344993e345b45 (diff) |
Fix missed forced items
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -759,7 +759,7 @@ local function gather_descs() for id, def in pairs(minetest.registered_tools) do local name, ld, uh local forced = false - if (forced_items[id] == true or def.groups.in_doc) and minetest.registered_nodes[id] ~= nil then forced = true end + if (forced_items[id] == true or def.groups.in_doc) and minetest.registered_tools[id] ~= nil then forced = true end if item_name_overrides[id] ~= nil then name = item_name_overrides[id] else @@ -790,7 +790,7 @@ local function gather_descs() local name, ld, uh name = def.description local forced = false - if (forced_items[id] == true or def.groups.in_doc) and minetest.registered_nodes[id] ~= nil then forced = true end + if (forced_items[id] == true or def.groups.in_doc) and minetest.registered_craftitems[id] ~= nil then forced = true end if item_name_overrides[id] ~= nil then name = item_name_overrides[id] else |