Made moreblocks dependency optional and configurable

This commit is contained in:
Vanessa Ezekowitz 2013-07-22 03:55:12 -04:00
parent 1377d69f54
commit d32993e355
3 changed files with 129 additions and 123 deletions

View File

@ -15,6 +15,10 @@ moretrees.enable_jungle_tree = true
moretrees.enable_fir = true
moretrees.enable_beech = false
-- Set this to true to allow usage of the stairsplus mod in moreblocks
moretrees.enable_stairsplus = true
-- Set this to true to enable leaf decay of all trees except the default ones.
moretrees.enable_leafdecay = true

View File

@ -1,4 +1,4 @@
default
plants_lib
moreblocks
moreblocks?

View File

@ -86,6 +86,8 @@ for i in ipairs(moretrees.treelist) do
},
})
if minetest.get_modpath("moreblocks") and moretrees.enable_stairsplus then
register_stair(
"moretrees",
treename.."_trunk",
@ -189,7 +191,7 @@ for i in ipairs(moretrees.treelist) do
table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_trunk")
table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks")
end
end
if (fruit ~= nil) then