Indestructible map nodes: Fix wool aliases (#859)

This commit is contained in:
Lars Müller 2021-04-07 19:33:19 +02:00 committed by GitHub
parent 6be1373cae
commit 5eb02e32e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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