mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	I guess Minecraft groups nearby itemstacks anyways... whoops
This commit is contained in:
		@@ -214,8 +214,8 @@ public final class Misc {
 | 
			
		||||
    public static void randomDropItems(Location location, ItemStack is, int chance, int quantity) {
 | 
			
		||||
    	int dropCount = random.nextInt(quantity);
 | 
			
		||||
    	
 | 
			
		||||
    	//I could just have the itemstacks quantity value changed but I think this will make it look more natural
 | 
			
		||||
    	for (int i = 0; i < dropCount; i++) {
 | 
			
		||||
    	if(dropCount > 0) {
 | 
			
		||||
    		is.setAmount(dropCount);
 | 
			
		||||
    		dropItem(location, is);
 | 
			
		||||
    	}
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user