mirror of
https://github.com/mt-mods/moretrees.git
synced 2025-08-17 06:10:20 +02:00
don't register snow:sapling_pine if snow mod isn't installed
This commit is contained in:
2
init.lua
2
init.lua
@ -160,8 +160,10 @@ end
|
||||
|
||||
if moretrees.enable_fir then
|
||||
plantslib:register_generate_plant(moretrees.fir_biome, moretrees.spawn_fir_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
|
||||
|
||||
|
Reference in New Issue
Block a user