mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 12:06:15 +01:00
Clear caches in more cases
This commit is contained in:
parent
612402d9cb
commit
ac285cae99
@ -1303,6 +1303,7 @@ public class Plot {
|
||||
DBFunc.delete(current);
|
||||
current.setOwnerAbs(null);
|
||||
current.settings = null;
|
||||
current.clearCache();
|
||||
for (final PlotPlayer<?> pp : players) {
|
||||
this.plotListener.plotEntry(pp, current);
|
||||
}
|
||||
@ -1873,6 +1874,7 @@ public class Plot {
|
||||
this.area.removePlot(this.id);
|
||||
this.id = plot.getId();
|
||||
this.area.addPlotAbs(this);
|
||||
clearCache();
|
||||
DBFunc.movePlot(this, plot);
|
||||
TaskManager.runTaskLater(whenDone, TaskTime.ticks(1L));
|
||||
return true;
|
||||
|
@ -263,6 +263,7 @@ public final class PlotModificationManager {
|
||||
return;
|
||||
}
|
||||
Plot current = queue.poll();
|
||||
current.clearCache();
|
||||
if (plot.getArea().getTerrain() != PlotAreaTerrainType.NONE) {
|
||||
try {
|
||||
PlotSquared.platform().regionManager().regenerateRegion(
|
||||
|
Loading…
Reference in New Issue
Block a user