})
end
end
- minetest.register_alias("xdecor:enchanted_"..tool.."_"..material.."_"..enchant, mod..
- ":enchanted_"..tool.."_"..material.."_"..enchant) -- legacy code
end
end
end
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.
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"
on_place = minetest.rotate_node
})
end
- minetest.register_alias("xdecor:"..d[1].."_"..name, mod..":"..name.."_"..d[1]) -- legacy code
end
end
end