From d2bd5f822f654a011dbc58b43997684dfe36794f Mon Sep 17 00:00:00 2001 From: Austin Shenk Date: Fri, 5 Jul 2013 12:51:56 -0400 Subject: [PATCH] Reimplemented specialties.tools table --- items.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/items.lua b/items.lua index e313baf..e65d14b 100644 --- a/items.lua +++ b/items.lua @@ -93,9 +93,12 @@ for name, def in pairs(minetest.registered_tools) do local upgrade = uptool:sub(uptool:find(":"), #uptool) specialties.upgradeTree[toolname] = "specialties"..upgrade.."_"..special.name end - minetest.register_tool(toolname, newdef) + specialties.tools[toolname] = newdef end end end end +end +for toolname, def in pairs(specialties.tools) do + minetest.register_tool(toolname, def) end \ No newline at end of file