mirror of
				https://github.com/mt-mods/plantlife_modpack.git
				synced 2025-11-04 07:25:30 +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
 | 
			
		||||
		local amount
 | 
			
		||||
		if math.random(1,3) == 1 then
 | 
			
		||||
		if can_harvest and math.random(1,3) == 1 then
 | 
			
		||||
			amount = "2"
 | 
			
		||||
		else
 | 
			
		||||
			amount = "1"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user