Add whenDone task to setCuboids and ensure whenDone tasks are added to the queue before FAWE might do something

This commit is contained in:
dordsor21
2021-06-08 19:32:13 +01:00
parent 9bd14b142b
commit f0cbc4f23e
6 changed files with 17 additions and 18 deletions

View File

@ -67,10 +67,10 @@ public class FaweRegionManager extends BukkitRegionManager {
final @NonNull Pattern blocks,
int minY,
int maxY,
@org.checkerframework.checker.nullness.qual.Nullable PlotPlayer<?> actor,
@org.checkerframework.checker.nullness.qual.Nullable QueueCoordinator queue
@Nullable PlotPlayer<?> actor,
@Nullable QueueCoordinator queue
) {
return delegate.setCuboids(area, regions, blocks, minY, maxY);
return delegate.setCuboids(area, regions, blocks, minY, maxY, queue.getCompleteTask());
}
@Override