mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 01:05:49 +01:00 
			
		
		
		
	Default/trees: Add requirement of light level 13 for sapling growth
This commit is contained in:
		@@ -16,6 +16,10 @@ local function can_grow(pos)
 | 
			
		||||
	if is_soil == 0 then
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
	local ll = minetest.get_node_light(pos)
 | 
			
		||||
	if not ll or ll < 13 then -- Minimum light level for growth
 | 
			
		||||
		return false          -- matches grass, wheat and cotton
 | 
			
		||||
	end
 | 
			
		||||
	return true
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user