aa1c5d860f
- Missing "local" in translation code. - Super-long-standing warning about duplicate aliases via oldnames.
15 lines
437 B
Lua
15 lines
437 B
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local minetest, nodecore, pairs
|
|
= minetest, nodecore, pairs
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
nodecore.register_on_register_item(function(name, def)
|
|
if def.oldnames then
|
|
for k, v in pairs(def.oldnames) do
|
|
if not minetest.registered_items[v] then
|
|
minetest.register_alias(v, name)
|
|
end
|
|
end
|
|
end
|
|
end)
|