2019-01-24 22:08:05 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
|
|
|
local minetest, nodecore, pairs
|
|
|
|
= minetest, nodecore, pairs
|
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2019-01-24 20:45:14 -05:00
|
|
|
nodecore.register_on_register_item(function(name, def)
|
|
|
|
if def.oldnames then
|
|
|
|
for k, v in pairs(def.oldnames) do
|
2019-08-27 07:31:45 -04:00
|
|
|
if not minetest.registered_items[v] then
|
|
|
|
minetest.register_alias(v, name)
|
|
|
|
end
|
2019-01-24 20:45:14 -05:00
|
|
|
end
|
|
|
|
end
|
2019-01-24 22:08:05 -05:00
|
|
|
end)
|