1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-11-05 09:50:34 +01:00

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

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