mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 01:03:44 +01:00 
			
		
		
		
	Randomize the treasure drop amounts instead of always dropping everything
For example, the guaranteed 5 diamonds will now be a 1-5 diamond drop.
This commit is contained in:
		| @@ -485,6 +485,10 @@ public class FishingManager extends SkillManager { | |||||||
|             treasureDrop.setDurability((short) (Misc.getRandom().nextInt(maxDurability))); |             treasureDrop.setDurability((short) (Misc.getRandom().nextInt(maxDurability))); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         if (treasureDrop.getAmount() > 1) { | ||||||
|  |             treasureDrop.setAmount(Misc.getRandom().nextInt(treasureDrop.getAmount()) + 1); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         treasure.setDrop(treasureDrop); |         treasure.setDrop(treasureDrop); | ||||||
|  |  | ||||||
|         return treasure; |         return treasure; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TfT_02
					TfT_02