check for moreblocks before assuming stairsplus can be used :-)

This commit is contained in:
Vanessa Ezekowitz 2017-02-16 20:47:44 -05:00
parent 12e0bb88c8
commit 2f110809d1
1 changed files with 18 additions and 17 deletions

View File

@ -269,8 +269,8 @@ for _, shade in ipairs(coloredwood.greys) do
table.insert(coloredwood.old_static_nodes, "coloredwood:fence_"..shade)
end
-- add all of the stairsplus nodes
-- add all of the stairsplus nodes, if moreblocks is installed.
if coloredwood.enable_stairsplus then
for _, shape in ipairs(circular_saw.names) do
local a = shape[1]
local b = shape[2]
@ -292,6 +292,7 @@ for _, shape in ipairs(circular_saw.names) do
end
end
end
end
minetest.register_lbm({
name = "coloredwood:convert",