summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-08-15 00:49:27 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-08-15 00:49:27 -0400
commit652baa7b32f43fb074ad79b3029e594c42e905b8 (patch)
treea021642d5a8df1fd826513ccf9557316830088ab
parent1e01ca8dea63105d7cadc4b2db48ba202dc10535 (diff)
don't register snow:sapling_pine if snow mod isn't installed
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 2cb048b..b9aa270 100644
--- a/init.lua
+++ b/init.lua
@@ -160,7 +160,9 @@ end
if moretrees.enable_fir then
plantslib:register_generate_plant(moretrees.fir_biome, moretrees.spawn_fir_object)
- plantslib:register_generate_plant(moretrees.fir_biome_snow, moretrees.spawn_fir_snow_object)
+ if minetest.get_modpath("snow") then
+ plantslib:register_generate_plant(moretrees.fir_biome_snow, moretrees.spawn_fir_snow_object)
+ end
end
-- Code to spawn a birch tree