fix: run whenDone on empty queue (#3474)

This commit is contained in:
Pierre Maurice Schwang 2022-01-27 12:13:55 +01:00 committed by GitHub
parent ff5d79699d
commit 92c54de5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,9 @@ public final class PlotModificationManager {
if (queue.size() > 0) {
queue.setCompleteTask(run);
queue.enqueue();
return;
}
run.run();
return;
}
Plot current = queue.poll();