From 5eb02e32e4f362b4ab4cdc4b01d465c13e739d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Wed, 7 Apr 2021 19:33:19 +0200 Subject: [PATCH] Indestructible map nodes: Fix wool aliases (#859) --- mods/ctf/ctf_map/ctf_map_core/nodes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_map/ctf_map_core/nodes.lua b/mods/ctf/ctf_map/ctf_map_core/nodes.lua index 098ba31..900d3fb 100644 --- a/mods/ctf/ctf_map/ctf_map_core/nodes.lua +++ b/mods/ctf/ctf_map/ctf_map_core/nodes.lua @@ -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