ctf_map: Fix crash due to missing item description for some stairs
This commit is contained in:
parent
3797c703ad
commit
96c21f2ef5
1 changed files with 6 additions and 2 deletions
|
@ -754,13 +754,17 @@ do
|
|||
for name, nodedef in pairs(nodes) do
|
||||
if name:find("stairs") then
|
||||
nodedef = table.copy(nodedef)
|
||||
if nodedef.description then
|
||||
nodedef.description = "Indestructible " .. nodedef.description
|
||||
end
|
||||
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)
|
||||
if nodedef.description then
|
||||
nodedef.description = "Indestructible " .. nodedef.description
|
||||
end
|
||||
nodedef.groups = {immortal = 1}
|
||||
minetest.register_node("ctf_map:wool_" .. color, nodedef)
|
||||
minetest.register_alias("ctf_map:" .. color, "ctf_map:wool_" .. color)
|
||||
|
|
Loading…
Reference in a new issue