From 4c6f2da78a3be14545abd62f2940b1d2d844f85c Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 16 Feb 2013 14:33:17 -0800 Subject: [PATCH] I guess Minecraft groups nearby itemstacks anyways... whoops --- src/main/java/com/gmail/nossr50/util/Misc.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index 115e2900a..9a4ffe8d0 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/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); } }