mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	random.nextInt() has 0 inclusive, we need to add 1
This commit is contained in:
		@@ -212,7 +212,7 @@ public final class Misc {
 | 
			
		||||
     * @param quantity The amount of items to drop
 | 
			
		||||
     */
 | 
			
		||||
    public static void randomDropItems(Location location, ItemStack is, int chance, int quantity) {
 | 
			
		||||
    	int dropCount = random.nextInt(quantity);
 | 
			
		||||
    	int dropCount = random.nextInt(quantity + 1);
 | 
			
		||||
    	
 | 
			
		||||
    	if(dropCount > 0) {
 | 
			
		||||
    		is.setAmount(dropCount);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user