mirror of
				https://github.com/mt-mods/moretrees.git
				synced 2025-11-04 07:25:30 +01:00 
			
		
		
		
	don't register snow:sapling_pine if snow mod isn't installed
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user