Fix recursive registration of ind. stairs and wool (#424)
This commit is contained in:
parent
97f810e0d0
commit
b5d19bcf5b
1 changed files with 2 additions and 1 deletions
|
@ -750,7 +750,8 @@ end
|
||||||
|
|
||||||
-- Register indestructible variants of nodes from stairs and wool
|
-- Register indestructible variants of nodes from stairs and wool
|
||||||
do
|
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
|
if name:find("stairs") then
|
||||||
nodedef = table.copy(nodedef)
|
nodedef = table.copy(nodedef)
|
||||||
nodedef.groups = {immortal = 1}
|
nodedef.groups = {immortal = 1}
|
||||||
|
|
Loading…
Reference in a new issue