don't register snow:sapling_pine if snow mod isn't installed

This commit is contained in:
Vanessa Ezekowitz 2014-08-15 00:49:27 -04:00
parent 1e01ca8dea
commit 652baa7b32
1 changed files with 3 additions and 1 deletions

View File

@ -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