Browse Source

Don't need to add one here, it sends us out of bounds.

GJ 12 years ago
parent
commit
b11e28c880
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java

@@ -374,7 +374,7 @@ public class Herbalism {
             }
             }
 
 
             int dropNumber = Misc.getRandom().nextInt(treasures.size());
             int dropNumber = Misc.getRandom().nextInt(treasures.size());
-            ItemStack item = treasures.get(dropNumber + 1).getDrop();
+            ItemStack item = treasures.get(dropNumber).getDrop();
             Location location = block.getLocation();
             Location location = block.getLocation();
 
 
             event.setCancelled(true);
             event.setCancelled(true);