Fix normal -> unbreakable bug
This commit is contained in:
parent
8b706130aa
commit
1a2948b359
1 changed files with 2 additions and 0 deletions
|
@ -752,9 +752,11 @@ minetest.register_node("ctf_map:killnode", {
|
||||||
-- Re-register all nodes from stairs and wool
|
-- Re-register all nodes from stairs and wool
|
||||||
for name, nodedef in pairs(minetest.registered_nodes) do
|
for name, nodedef in pairs(minetest.registered_nodes) do
|
||||||
if name:find("stairs") then
|
if name:find("stairs") then
|
||||||
|
nodedef = table.copy(nodedef)
|
||||||
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
|
||||||
|
nodedef = table.copy(nodedef)
|
||||||
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)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue