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:
parent
1e01ca8dea
commit
652baa7b32
4
init.lua
4
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user