mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 16:46:45 +01:00
For sign updating to be scheduled asynchronously.
It then forces it back on the main thread, so it's fine, but this way we can safely wait for the UUID mapping to be fetched.
This commit is contained in:
parent
2417dace2d
commit
f01b242e4a
@ -1046,10 +1046,12 @@ public class Plot {
|
|||||||
}
|
}
|
||||||
if (createSign) {
|
if (createSign) {
|
||||||
GlobalBlockQueue.IMP.addEmptyTask(() -> {
|
GlobalBlockQueue.IMP.addEmptyTask(() -> {
|
||||||
|
TaskManager.runTaskAsync(() -> {
|
||||||
for (Plot current : plots) {
|
for (Plot current : plots) {
|
||||||
current.setSign(MainUtil.getName(current.getOwnerAbs()));
|
current.setSign(MainUtil.getName(current.getOwnerAbs()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (createRoad) {
|
if (createRoad) {
|
||||||
manager.finishPlotUnlink(ids);
|
manager.finishPlotUnlink(ids);
|
||||||
|
Loading…
Reference in New Issue
Block a user