mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixed plot list
This commit is contained in:
		@@ -538,7 +538,7 @@ public class PS {
 | 
			
		||||
        List<Plot> overflow = new ArrayList<Plot>(overflowSize);
 | 
			
		||||
        for (Plot plot : plots) {
 | 
			
		||||
            int hash = MathMan.getPositiveId(plot.hashCode());
 | 
			
		||||
            if (hash < hardmax) {
 | 
			
		||||
            if (hash < hardmax && hash > -1) {
 | 
			
		||||
                cache[hash] = plot;
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
 
 | 
			
		||||
@@ -304,7 +304,7 @@ public class list extends SubCommand {
 | 
			
		||||
    
 | 
			
		||||
    public void displayPlots(PlotPlayer player, List<Plot> plots, int pageSize, int page, String world, String[] args, boolean sort) {
 | 
			
		||||
        if (sort) {
 | 
			
		||||
            plots = PS.get().sortPlots(plots, SortType.CREATION_DATE, world);
 | 
			
		||||
            plots = PS.get().sortPlots(plots, SortType.DISTANCE_FROM_ORIGIN, world);
 | 
			
		||||
        }
 | 
			
		||||
        if (page < 0) {
 | 
			
		||||
            page = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user