ctf_map: Fix description of ind. stairs and wool

This commit is contained in:
ANAND 2019-10-10 19:15:32 +05:30 committed by GitHub
parent 136211a073
commit 3797c703ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -754,11 +754,13 @@ do
for name, nodedef in pairs(nodes) do
if name:find("stairs") then
nodedef = table.copy(nodedef)
nodedef.description = "Indestructible " .. nodedef.description
nodedef.groups = {immortal = 1}
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
elseif name:find("wool") then
local color = name:split(":")[2]
nodedef = table.copy(nodedef)
nodedef.description = "Indestructible " .. nodedef.description
nodedef.groups = {immortal = 1}
minetest.register_node("ctf_map:wool_" .. color, nodedef)
minetest.register_alias("ctf_map:" .. color, "ctf_map:wool_" .. color)