From 536b76f46ca3d0728bb3dc96c43a2a256a6871f0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 5 Aug 2016 05:24:10 +0200 Subject: Fix missed forced items --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3