]> git.lizzy.rs Git - xdecor.git/commitdiff
Drop some aliases
authorkilbith <jeanpatrick.guerrero@gmail.com>
Mon, 4 Jan 2016 14:39:57 +0000 (15:39 +0100)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Mon, 4 Jan 2016 15:03:59 +0000 (16:03 +0100)
enchanting.lua
init.lua
worktable.lua

index c70738d13a32353613b6395aa45ae77d2f362d18..ade5748400c5576ab7934db23bc27736d2b1b975 100644 (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
index 0941f3667f4c12e4ca5053f394cbc30e7341e5e6..df70e484fdb238450c194f56482a50113f63e10a 100644 (file)
--- 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.
 
index c6c576ad72656249e9f1368c0aee40ea05fb382c..5e97f61bfa714a11cbe86da2f2636029a5680769 100644 (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