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:
Alexander Söderberg 2020-05-20 15:26:20 +02:00
parent 2417dace2d
commit f01b242e4a
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -1046,9 +1046,11 @@ public class Plot {
} }
if (createSign) { if (createSign) {
GlobalBlockQueue.IMP.addEmptyTask(() -> { GlobalBlockQueue.IMP.addEmptyTask(() -> {
for (Plot current : plots) { TaskManager.runTaskAsync(() -> {
current.setSign(MainUtil.getName(current.getOwnerAbs())); for (Plot current : plots) {
} current.setSign(MainUtil.getName(current.getOwnerAbs()));
}
});
}); });
} }
if (createRoad) { if (createRoad) {