mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01: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