mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-01-19 16:59:36 +01:00
Fix "Asynchronous block remove" issue
This commit is contained in:
parent
e876a93ef6
commit
55fe1c74c7
@ -544,14 +544,19 @@ import java.util.concurrent.TimeUnit;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (final Plot plot : toDeletePlot) {
|
for (final Plot plot : toDeletePlot) {
|
||||||
final World worldobj = Bukkit.getWorld(world);
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
PlotHelper.clear(worldobj, plot, true);
|
@Override
|
||||||
PlotHelper.removeSign(worldobj, plot);
|
public void run() {
|
||||||
DBFunc.delete(world, plot);
|
final World worldobj = Bukkit.getWorld(world);
|
||||||
removePlot(world, plot.id, true);
|
PlotHelper.clear(worldobj, plot, true);
|
||||||
if ((Math.abs(plot.id.x) < Math.abs(Auto.lastPlot.x)) && (Math.abs(plot.id.y) < Math.abs(Auto.lastPlot.y))) {
|
PlotHelper.removeSign(worldobj, plot);
|
||||||
Auto.lastPlot = plot.id;
|
DBFunc.delete(world, plot);
|
||||||
}
|
removePlot(world, plot.id, true);
|
||||||
|
if ((Math.abs(plot.id.x) < Math.abs(Auto.lastPlot.x)) && (Math.abs(plot.id.y) < Math.abs(Auto.lastPlot.y))) {
|
||||||
|
Auto.lastPlot = plot.id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -253,6 +253,7 @@ import java.util.Set;
|
|||||||
if (!isPlotWorld(q)) {
|
if (!isPlotWorld(q)) {
|
||||||
if (isPlotWorld(f)) {
|
if (isPlotWorld(f)) {
|
||||||
PWE.removeMask(p);
|
PWE.removeMask(p);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user