Compare commits

..

No commits in common. "e23dbb3d802c947c9f7e7cf244cce676bbe78746" and "c1b3604a97ddd94d6396ae218e556b161de51f30" have entirely different histories.

View file

@ -123,12 +123,12 @@ for name, def in pairs(registered_nodes) do
local prefix = mod_prefixes[mod] local prefix = mod_prefixes[mod]
if nodename and prefix and not (def.groups and def.groups.mortal) then if nodename and prefix and not (def.groups and def.groups.mortal) then
-- HACK to preserve backwards compatibility -- HACK to preserve backwards compatibility
local new_name = "ctf_map:" .. prefix .. nodename local new_name = ":ctf_map:" .. prefix .. nodename
if def.drop == name then if def.drop == name then
def.drop = new_name def.drop = new_name
end end
make_immortal(def) make_immortal(def)
minetest.register_node(":" .. new_name, def) minetest.register_node(new_name, def)
if mod == "wool" then if mod == "wool" then
minetest.register_alias("ctf_map:" .. nodename, new_name) minetest.register_alias("ctf_map:" .. nodename, new_name)
end end