Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
This commit is contained in:
commit
e23dbb3d80
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue