forked from mtcontrib/plantlife_modpack
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			nalc-1.0
			...
			8b42a45d78
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8b42a45d78 | |||
| 
						 | 
					0d228f705c | ||
| 
						 | 
					229d6aba88 | ||
| 
						 | 
					4e32feaa55 | ||
| 
						 | 
					b9b592af44 | 
@@ -14,10 +14,10 @@ local S = plantlife_i18n.gettext
 | 
				
			|||||||
-- lot of code, lot to load
 | 
					-- lot of code, lot to load
 | 
				
			||||||
 | 
					
 | 
				
			||||||
abstract_ferns.grow_giant_tree_fern = function(pos)
 | 
					abstract_ferns.grow_giant_tree_fern = function(pos)
 | 
				
			||||||
	local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z}
 | 
						local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z}
 | 
				
			||||||
	if minetest.get_node(pos_01).name ~= "air"
 | 
						local name = minetest.get_node(pos_aux).name
 | 
				
			||||||
			and minetest.get_node(pos_01).name ~= "ferns:sapling_giant_tree_fern"
 | 
						if name ~= "air" and name ~= "ferns:sapling_giant_tree_fern"
 | 
				
			||||||
			and minetest.get_node(pos_01).name ~= "default:junglegrass" then
 | 
								and name ~= "default:junglegrass" then
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -64,7 +64,9 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	local brk = false
 | 
						local brk = false
 | 
				
			||||||
	for i = 1, size-3 do
 | 
						for i = 1, size-3 do
 | 
				
			||||||
		if minetest.get_node({x = pos.x, y = pos.y + i, z = pos.z}).name ~= "air" then
 | 
							pos_aux.y = pos.y + i
 | 
				
			||||||
 | 
							local name = minetest.get_node(pos_aux).name
 | 
				
			||||||
 | 
							if not (name == "air" or (i == 1 and name == "ferns:sapling_giant_tree_fern")) then
 | 
				
			||||||
			brk = true
 | 
								brk = true
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,10 +13,10 @@ assert(abstract_ferns.config.enable_treefern == true)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
abstract_ferns.grow_tree_fern = function(pos)
 | 
					abstract_ferns.grow_tree_fern = function(pos)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	local pos_01 = {x = pos.x, y = pos.y + 1, z = pos.z}
 | 
						local pos_aux = {x = pos.x, y = pos.y + 1, z = pos.z}
 | 
				
			||||||
	if minetest.get_node(pos_01).name ~= "air"
 | 
						local name = minetest.get_node(pos_aux).name
 | 
				
			||||||
			and minetest.get_node(pos_01).name ~= "ferns:sapling_tree_fern"
 | 
						if name ~= "air" and name ~= "ferns:sapling_tree_fern"
 | 
				
			||||||
			and minetest.get_node(pos_01).name ~= "default:junglegrass" then
 | 
								and name ~= "default:junglegrass" then
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -30,7 +30,9 @@ abstract_ferns.grow_tree_fern = function(pos)
 | 
				
			|||||||
	local i = 1
 | 
						local i = 1
 | 
				
			||||||
	local brk = false
 | 
						local brk = false
 | 
				
			||||||
	while (i < size) do
 | 
						while (i < size) do
 | 
				
			||||||
		if minetest.get_node({x = pos.x, y = pos.y + i, z = pos.z}).name ~= "air" then
 | 
							pos_aux.y = pos.y + i
 | 
				
			||||||
 | 
							name = minetest.get_node(pos_aux).name
 | 
				
			||||||
 | 
							if not (name == "air" or (i == 1 and name == "ferns:sapling_tree_fern")) then
 | 
				
			||||||
			brk = true
 | 
								brk = true
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,5 +2,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Molehills_Max_Count		= 320 -- absolute maximum number in an area of 80x80x80 nodes
 | 
					Molehills_Max_Count		= 320 -- absolute maximum number in an area of 80x80x80 nodes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Molehills_Rarity		= 87 -- larger values make molehills more rare (100 means chance of 0 %)
 | 
					Molehills_Rarity		= 95 -- larger values make molehills more rare (100 means chance of 0 %)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user