Fix normal -> unbreakable bug

This commit is contained in:
Thomas--S 2019-03-09 20:54:54 +01:00 committed by rubenwardy
parent 8b706130aa
commit 1a2948b359

View file

@ -752,9 +752,11 @@ minetest.register_node("ctf_map:killnode", {
-- Re-register all nodes from stairs and wool
for name, nodedef in pairs(minetest.registered_nodes) do
if name:find("stairs") then
nodedef = table.copy(nodedef)
nodedef.groups = {immortal = 1}
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
elseif name:find("wool") then
nodedef = table.copy(nodedef)
nodedef.groups = {immortal = 1}
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
end