1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-25 02:00:23 +01:00

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_fir = true
moretrees.enable_beech = false 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. -- Set this to true to enable leaf decay of all trees except the default ones.
moretrees.enable_leafdecay = true moretrees.enable_leafdecay = true

View File

@ -1,4 +1,4 @@
default default
plants_lib 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( register_stair(
"moretrees", "moretrees",
treename.."_trunk", 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.."_trunk")
table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks") table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks")
end
end end
if (fruit ~= nil) then if (fruit ~= nil) then