un-cache base plot on merge

This commit is contained in:
boy0001 2015-09-27 19:42:22 +10:00
parent 0273a4614b
commit c3eb44f51c
4 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<artifactId>PlotSquared</artifactId> <artifactId>PlotSquared</artifactId>
<version>3.2.2</version> <version>3.2.3</version>
<name>PlotSquared</name> <name>PlotSquared</name>
<packaging>jar</packaging> <packaging>jar</packaging>
<build> <build>

View File

@ -967,13 +967,13 @@ public class PS {
for (final String world : worlds) { for (final String world : worlds) {
switch (type) { switch (type) {
case CREATION_DATE: case CREATION_DATE:
toReturn.addAll(sortPlotsByTemp(getPlotsInWorld(world))); toReturn.addAll(sortPlotsByTemp(map.get(world)));
break; break;
case CREATION_DATE_TIMESTAMP: case CREATION_DATE_TIMESTAMP:
toReturn.addAll(sortPlotsByTimestamp(getPlotsInWorld(world))); toReturn.addAll(sortPlotsByTimestamp(map.get(world)));
break; break;
case DISTANCE_FROM_ORIGIN: case DISTANCE_FROM_ORIGIN:
toReturn.addAll(sortPlotsByHash(getPlotsInWorld(world))); toReturn.addAll(sortPlotsByHash(map.get(world)));
break; break;
default: default:
break; break;

View File

@ -1134,6 +1134,7 @@ public class Plot {
DBFunc.setMerged(this, merged); DBFunc.setMerged(this, merged);
MainUtil.connected_cache = null; MainUtil.connected_cache = null;
MainUtil.regions_cache = null; MainUtil.regions_cache = null;
origin = null;
} }
/** /**
@ -1147,6 +1148,7 @@ public class Plot {
DBFunc.setMerged(this, getSettings().getMerged()); DBFunc.setMerged(this, getSettings().getMerged());
MainUtil.connected_cache = null; MainUtil.connected_cache = null;
MainUtil.regions_cache = null; MainUtil.regions_cache = null;
origin = null;
} }
} }

Binary file not shown.