mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fix "Asynchronous block remove" issue
This commit is contained in:
parent
e876a93ef6
commit
55fe1c74c7
2 changed files with 14 additions and 8 deletions
|
@ -544,6 +544,9 @@ import java.util.concurrent.TimeUnit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (final Plot plot : toDeletePlot) {
|
for (final Plot plot : toDeletePlot) {
|
||||||
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
final World worldobj = Bukkit.getWorld(world);
|
final World worldobj = Bukkit.getWorld(world);
|
||||||
PlotHelper.clear(worldobj, plot, true);
|
PlotHelper.clear(worldobj, plot, true);
|
||||||
PlotHelper.removeSign(worldobj, plot);
|
PlotHelper.removeSign(worldobj, plot);
|
||||||
|
@ -553,6 +556,8 @@ import java.util.concurrent.TimeUnit;
|
||||||
Auto.lastPlot = plot.id;
|
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…
Reference in a new issue