mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
fix array out of bounds
This commit is contained in:
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user