mirror of
				https://github.com/mt-mods/plantlife_modpack.git
				synced 2025-11-03 23:25:26 +01:00 
			
		
		
		
	limit bush duping (#33)
only allow a chance of getting a 2nd bush from bushes with fruit, to prevent instant bush duping.
This commit is contained in:
		@@ -63,7 +63,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		-- with a chance of 1/3, return 2 bushes
 | 
							-- with a chance of 1/3, return 2 bushes
 | 
				
			||||||
		local amount
 | 
							local amount
 | 
				
			||||||
		if math.random(1,3) == 1 then
 | 
							if can_harvest and math.random(1,3) == 1 then
 | 
				
			||||||
			amount = "2"
 | 
								amount = "2"
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			amount = "1"
 | 
								amount = "1"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user