Fix recursive registration of ind. stairs and wool (#424)

This commit is contained in:
ANAND 2019-07-24 19:08:53 +05:30 committed by Thomas--S
parent 97f810e0d0
commit b5d19bcf5b

View file

@ -750,7 +750,8 @@ end
-- Register indestructible variants of nodes from stairs and wool
do
for name, nodedef in pairs(minetest.registered_nodes) do
local nodes = table.copy(minetest.registered_nodes)
for name, nodedef in pairs(nodes) do
if name:find("stairs") then
nodedef = table.copy(nodedef)
nodedef.groups = {immortal = 1}