From f6a495985dd03f619a7d88e1e23a684f296b9ae0 Mon Sep 17 00:00:00 2001 From: kilbith Date: Mon, 4 Jan 2016 15:39:57 +0100 Subject: [PATCH] Drop some aliases --- enchanting.lua | 2 -- init.lua | 2 -- worktable.lua | 3 --- 3 files changed, 7 deletions(-) diff --git a/enchanting.lua b/enchanting.lua index c70738d..ade5748 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -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 diff --git a/init.lua b/init.lua index 0941f36..df70e48 100644 --- a/init.lua +++ b/init.lua @@ -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. diff --git a/worktable.lua b/worktable.lua index c6c576a..5e97f61 100644 --- a/worktable.lua +++ b/worktable.lua @@ -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