Don't need chance anymore.

This commit is contained in:
GJ
2013-02-17 01:26:47 -05:00
parent 946513cb66
commit 8a795e6091
5 changed files with 15 additions and 15 deletions

View File

@ -211,13 +211,13 @@ public final class Misc {
* @param chance The percentage chance for the item to drop
* @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 + 1);
if(dropCount > 0) {
is.setAmount(dropCount);
dropItem(location, is);
}
public static void randomDropItems(Location location, ItemStack is, int quantity) {
int dropCount = random.nextInt(quantity + 1);
if (dropCount > 0) {
is.setAmount(dropCount);
dropItem(location, is);
}
}
/**