Reimplemented specialties.tools table

This commit is contained in:
Austin Shenk 2013-07-05 12:51:56 -04:00
parent 21bfb31a99
commit d2bd5f822f

View File

@ -93,9 +93,12 @@ for name, def in pairs(minetest.registered_tools) do
local upgrade = uptool:sub(uptool:find(":"), #uptool) local upgrade = uptool:sub(uptool:find(":"), #uptool)
specialties.upgradeTree[toolname] = "specialties"..upgrade.."_"..special.name specialties.upgradeTree[toolname] = "specialties"..upgrade.."_"..special.name
end end
minetest.register_tool(toolname, newdef) specialties.tools[toolname] = newdef
end end
end end
end end
end end
end end
for toolname, def in pairs(specialties.tools) do
minetest.register_tool(toolname, def)
end