summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 05:24:10 +0200
committerWuzzy <almikes@aol.com>2016-08-05 05:24:10 +0200
commit536b76f46ca3d0728bb3dc96c43a2a256a6871f0 (patch)
treee9fa1a61486fdb4ce80982391626aaf4ded542de /init.lua
parented340a63aadb51905d954b1bdc9344993e345b45 (diff)
Fix missed forced items
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 736f2c1..216a300 100644
--- a/init.lua
+++ b/init.lua
@@ -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