2
0
Эх сурвалжийг харах

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

GJ 12 жил өмнө
parent
commit
b11e28c880

+ 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());
-            ItemStack item = treasures.get(dropNumber + 1).getDrop();
+            ItemStack item = treasures.get(dropNumber).getDrop();
             Location location = block.getLocation();
 
             event.setCancelled(true);