From 8ff345af38ec712c5b4f01e4017af2a82a93ddb9 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 29 Dec 2020 13:20:10 -0800 Subject: [PATCH] fix array out of bounds --- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index 52c4163ab..3e0ec850e 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -478,7 +478,7 @@ public class FishingManager extends SkillManager { Collections.shuffle(enchantmentWrappers, Misc.getRandom()); int randomIndex = Misc.getRandom().nextInt(enchantmentWrappers.size()); - return enchantmentWrappers.get(randomIndex+1); + return enchantmentWrappers.get(randomIndex); } /**