mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
I guess Minecraft groups nearby itemstacks anyways... whoops
This commit is contained in:
parent
3550310e5c
commit
4c6f2da78a
@ -214,8 +214,8 @@ public final class Misc {
|
|||||||
public static void randomDropItems(Location location, ItemStack is, int chance, int quantity) {
|
public static void randomDropItems(Location location, ItemStack is, int chance, int quantity) {
|
||||||
int dropCount = random.nextInt(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
|
if(dropCount > 0) {
|
||||||
for (int i = 0; i < dropCount; i++) {
|
is.setAmount(dropCount);
|
||||||
dropItem(location, is);
|
dropItem(location, is);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user