ctf_map: Fix description of ind. stairs and wool
This commit is contained in:
parent
136211a073
commit
3797c703ad
1 changed files with 2 additions and 0 deletions
|
@ -754,11 +754,13 @@ do
|
||||||
for name, nodedef in pairs(nodes) do
|
for name, nodedef in pairs(nodes) do
|
||||||
if name:find("stairs") then
|
if name:find("stairs") then
|
||||||
nodedef = table.copy(nodedef)
|
nodedef = table.copy(nodedef)
|
||||||
|
nodedef.description = "Indestructible " .. nodedef.description
|
||||||
nodedef.groups = {immortal = 1}
|
nodedef.groups = {immortal = 1}
|
||||||
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
|
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
|
||||||
elseif name:find("wool") then
|
elseif name:find("wool") then
|
||||||
local color = name:split(":")[2]
|
local color = name:split(":")[2]
|
||||||
nodedef = table.copy(nodedef)
|
nodedef = table.copy(nodedef)
|
||||||
|
nodedef.description = "Indestructible " .. nodedef.description
|
||||||
nodedef.groups = {immortal = 1}
|
nodedef.groups = {immortal = 1}
|
||||||
minetest.register_node("ctf_map:wool_" .. color, nodedef)
|
minetest.register_node("ctf_map:wool_" .. color, nodedef)
|
||||||
minetest.register_alias("ctf_map:" .. color, "ctf_map:wool_" .. color)
|
minetest.register_alias("ctf_map:" .. color, "ctf_map:wool_" .. color)
|
||||||
|
|
Loading…
Reference in a new issue