From b11e28c880ce78474b5de8cb817d1354b28f1686 Mon Sep 17 00:00:00 2001 From: GJ Date: Sat, 2 Feb 2013 17:04:11 -0500 Subject: [PATCH] Don't need to add one here, it sends us out of bounds. --- src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java index 073d902a1..8a41b1f8f 100644 --- a/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java @@ -374,7 +374,7 @@ public class Herbalism { } int dropNumber = Misc.getRandom().nextInt(treasures.size()); - ItemStack item = treasures.get(dropNumber + 1).getDrop(); + ItemStack item = treasures.get(dropNumber).getDrop(); Location location = block.getLocation(); event.setCancelled(true);