mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-16 12:24:43 +02:00
fix: OOB in hasNext of iterator when streaming plots
This commit is contained in:
@ -44,7 +44,7 @@ interface PlotProvider {
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
if (currentAreaPlots == null || !currentAreaPlots.hasNext()) {
|
||||
if (areaIndex >= areas.length) {
|
||||
if (areaIndex >= areas.length - 1) {
|
||||
return false;
|
||||
}
|
||||
currentAreaPlots = areas[++areaIndex].getPlots().iterator();
|
||||
|
Reference in New Issue
Block a user