1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-19 15:31:25 +02:00

fix array out of bounds

This commit is contained in:
nossr50 2020-12-29 13:20:10 -08:00
parent bab13f32e7
commit 8ff345af38

@ -478,7 +478,7 @@ public class FishingManager extends SkillManager {
Collections.shuffle(enchantmentWrappers, Misc.getRandom()); Collections.shuffle(enchantmentWrappers, Misc.getRandom());
int randomIndex = Misc.getRandom().nextInt(enchantmentWrappers.size()); int randomIndex = Misc.getRandom().nextInt(enchantmentWrappers.size());
return enchantmentWrappers.get(randomIndex+1); return enchantmentWrappers.get(randomIndex);
} }
/** /**