From 4a52135a0bf96145edb56fb2c6350e9b18f1527f Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Mon, 12 Nov 2012 19:10:14 -0800 Subject: [PATCH] Nerfing overpowered Herbalism double drops for melons and netherwart. --- .../java/com/gmail/nossr50/skills/gathering/Herbalism.java | 7 ++----- src/main/java/com/gmail/nossr50/util/Misc.java | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java index 73a5f61c8..77c4dd969 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java @@ -267,7 +267,6 @@ public class Herbalism { else if (mat == Material.POTATO) { is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0); } - else { is = new ItemStack(mat); } @@ -297,15 +296,13 @@ public class Herbalism { case MELON_BLOCK: if (configInstance.getMelonsDoubleDropsEnabled()) { - Misc.dropItems(location, is, 3); - Misc.randomDropItems(location, is, 50, 4); + Misc.dropItem(location, is); } break; case NETHER_WARTS: if (configInstance.getNetherWartsDoubleDropsEnabled()) { - Misc.dropItems(location, is, 2); - Misc.randomDropItems(location, is, 50, 3); + Misc.dropItem(location, is); } break; diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index 318585f46..e77177bd3 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/src/main/java/com/gmail/nossr50/util/Misc.java @@ -217,7 +217,7 @@ public class Misc { * @param is The item to drop * @param chance The percentage chance for the item to drop */ - public static void randomDropItem(Location location, ItemStack is, double chance) { + public static void randomDropItem(Location location, ItemStack is, int chance) { if (random.nextInt(100) < chance) { dropItem(location, is); }