diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-04-08 22:54:22 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-04-08 22:54:22 -0400 |
commit | 4184caa64134fae63c31d3699b55dd4c150f3f8a (patch) | |
tree | f507ba7dd8414d6c068a5d2ed7a35fb9d763cf07 /init.lua | |
parent | 4c198fad78428ac7695626fc39cf6db63d25c7d3 (diff) |
removed all code that tries to disable default trees because the minetest dev
team is being completely obstinant about letting me properly disable them from
this mod.
Instead, made beech trees respond to enable flags in settings.lua (disabled by
default). If you want beeches, turn that flag on in settings.lua and remove
the "trees" flag from yourworld/map_meta.txt in the mg_flags line.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -19,22 +19,19 @@ moretrees = {} dofile(minetest.get_modpath("moretrees").."/settings.lua") -dofile(minetest.get_modpath("moretrees").."/node_defs.lua") dofile(minetest.get_modpath("moretrees").."/tree_models.lua") dofile(minetest.get_modpath("moretrees").."/biome_defs.lua") +dofile(minetest.get_modpath("moretrees").."/node_defs.lua") +dofile(minetest.get_modpath("moretrees").."/saplings.lua") dofile(minetest.get_modpath("moretrees").."/crafts.lua") dofile(minetest.get_modpath("moretrees").."/leafdecay.lua") -dofile(minetest.get_modpath("moretrees").."/saplings.lua") -if moretrees.enable_replace_default_trees then - minetest.register_alias("mapgen_tree", "air") - minetest.register_alias("mapgen_leaves", "air") - minetest.register_alias("mapgen_apple", "air") +-- tree spawning setup + +if moretrees.enable_beech then plantslib:register_generate_plant(moretrees.beech_biome, moretrees.beech_model) end --- tree spawning setup - if moretrees.enable_apple_tree then plantslib:register_generate_plant(moretrees.apple_tree_biome, moretrees.apple_tree_model) end |