diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-08-15 00:49:27 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-08-15 00:49:27 -0400 |
commit | 652baa7b32f43fb074ad79b3029e594c42e905b8 (patch) | |
tree | a021642d5a8df1fd826513ccf9557316830088ab | |
parent | 1e01ca8dea63105d7cadc4b2db48ba202dc10535 (diff) |
don't register snow:sapling_pine if snow mod isn't installed
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |