fix array out of bounds

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

View File

@ -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);
} }
/** /**