Skip to content

Commit

Permalink
fix array out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Dec 29, 2020
1 parent bab13f3 commit 8ff345a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -478,7 +478,7 @@ public void processFishing(@NotNull Item fishingCatch) {
Collections.shuffle(enchantmentWrappers, Misc.getRandom());

int randomIndex = Misc.getRandom().nextInt(enchantmentWrappers.size());
return enchantmentWrappers.get(randomIndex+1);
return enchantmentWrappers.get(randomIndex);
}

/**
Expand Down

0 comments on commit 8ff345a

Please sign in to comment.