1
0
forked from MTSR/moreblocks

Check for ndef before registering Stairs+ nodes.

This commit is contained in:
Calinou 2015-02-11 17:59:28 +01:00
parent 5e0201968e
commit aef4413eb9

View File

@ -35,6 +35,7 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
for _, name in pairs(default_nodes) do
local nodename = "default:" .. name
local ndef = minetest.registered_nodes[nodename]
if ndef then
local groups = {}
for k, v in pairs(ndef.groups)
-- Ignore wood and stone groups to not make them usable in crafting:
@ -55,4 +56,5 @@ for _, name in pairs(default_nodes) do
sunlight_propagates = true,
})
end
end