Drop some aliases

This commit is contained in:
kilbith 2016-01-04 15:39:57 +01:00
parent 04b1dccb5e
commit f6a495985d
3 changed files with 0 additions and 7 deletions

View File

@ -233,8 +233,6 @@ for _, ench in pairs(tooldef[3]) do
})
end
end
minetest.register_alias("xdecor:enchanted_"..tool.."_"..material.."_"..enchant, mod..
":enchanted_"..tool.."_"..material.."_"..enchant) -- legacy code
end
end
end

View File

@ -16,7 +16,5 @@ dofile(modpath.."/nodes.lua")
dofile(modpath.."/sitting.lua")
dofile(modpath.."/worktable.lua")
dofile(modpath.."/xwall.lua")
--print(string.format("xdecor loaded in %.2f ms", (os.clock()-t)*1000))
--TODO: remove the legacy code in ~6 months.

View File

@ -97,9 +97,7 @@ function worktable.craft_output_recipe(pos, start_i, pagenum, stackname, recipe_
end
end
local craft = {}
for k, def in pairs(stack_items) do
craft[#craft+1] = def
if def and def:find("^group:") then
if def:find("wool$") or def:find("dye$") then
def = def:match(":([%w_]+)")..":white"
@ -446,7 +444,6 @@ for _, name in pairs(n) do
on_place = minetest.rotate_node
})
end
minetest.register_alias("xdecor:"..d[1].."_"..name, mod..":"..name.."_"..d[1]) -- legacy code
end
end
end