mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Generate slightly less shrubs
This commit is contained in:
		@@ -195,7 +195,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
 | 
			
		||||
			local x1 = minp.x + math.floor((divx+1)*divlen)
 | 
			
		||||
			local z1 = minp.z + math.floor((divz+1)*divlen)
 | 
			
		||||
			-- Determine cactus amount from perlin noise
 | 
			
		||||
			local cactus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 5 + 2)
 | 
			
		||||
			local cactus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 5 + 0)
 | 
			
		||||
			-- Find random positions for cactus based on this random
 | 
			
		||||
			local pr = PseudoRandom(seed+1)
 | 
			
		||||
			for i=0,cactus_amount do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user