瀏覽代碼

I guess Minecraft groups nearby itemstacks anyways... whoops

nossr50 12 年之前
父節點
當前提交
4c6f2da78a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/gmail/nossr50/util/Misc.java

+ 2 - 2
src/main/java/com/gmail/nossr50/util/Misc.java

@@ -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);
     	}
     }