mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
fix: run whenDone on empty queue (#3474)
This commit is contained in:
parent
ff5d79699d
commit
92c54de5e9
@ -262,7 +262,9 @@ public final class PlotModificationManager {
|
|||||||
if (queue.size() > 0) {
|
if (queue.size() > 0) {
|
||||||
queue.setCompleteTask(run);
|
queue.setCompleteTask(run);
|
||||||
queue.enqueue();
|
queue.enqueue();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
run.run();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Plot current = queue.poll();
|
Plot current = queue.poll();
|
||||||
|
Loading…
Reference in New Issue
Block a user