mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	un-cache base plot on merge
This commit is contained in:
		@@ -967,13 +967,13 @@ public class PS {
 | 
			
		||||
        for (final String world : worlds) {
 | 
			
		||||
            switch (type) {
 | 
			
		||||
                case CREATION_DATE:
 | 
			
		||||
                    toReturn.addAll(sortPlotsByTemp(getPlotsInWorld(world)));
 | 
			
		||||
                    toReturn.addAll(sortPlotsByTemp(map.get(world)));
 | 
			
		||||
                    break;
 | 
			
		||||
                case CREATION_DATE_TIMESTAMP:
 | 
			
		||||
                    toReturn.addAll(sortPlotsByTimestamp(getPlotsInWorld(world)));
 | 
			
		||||
                    toReturn.addAll(sortPlotsByTimestamp(map.get(world)));
 | 
			
		||||
                    break;
 | 
			
		||||
                case DISTANCE_FROM_ORIGIN:
 | 
			
		||||
                    toReturn.addAll(sortPlotsByHash(getPlotsInWorld(world)));
 | 
			
		||||
                    toReturn.addAll(sortPlotsByHash(map.get(world)));
 | 
			
		||||
                    break;
 | 
			
		||||
                default:
 | 
			
		||||
                    break;
 | 
			
		||||
 
 | 
			
		||||
@@ -1134,6 +1134,7 @@ public class Plot {
 | 
			
		||||
    public void setMerged(boolean[] merged) {
 | 
			
		||||
        getSettings().merged = merged;
 | 
			
		||||
        DBFunc.setMerged(this, merged);
 | 
			
		||||
        MainUtil.connected_cache = null;
 | 
			
		||||
        MainUtil.regions_cache = null;
 | 
			
		||||
        origin = null;
 | 
			
		||||
    }
 | 
			
		||||
@@ -1147,6 +1148,7 @@ public class Plot {
 | 
			
		||||
    public void setMerged(int direction, boolean value) {
 | 
			
		||||
        if (getSettings().setMerged(direction, value)) {
 | 
			
		||||
            DBFunc.setMerged(this, getSettings().getMerged());
 | 
			
		||||
            MainUtil.connected_cache = null;
 | 
			
		||||
            MainUtil.regions_cache = null;
 | 
			
		||||
            origin = null;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user