mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-29 20:24:43 +02:00
Fixes #405
This commit is contained in:
@ -61,13 +61,15 @@ public class SetBlockQueue {
|
||||
if (locked) {
|
||||
return;
|
||||
}
|
||||
if (blocks.size() == 0) {
|
||||
if (blocks == null || blocks.size() == 0) {
|
||||
PS.get().TASK.cancelTask(TaskManager.tasks.get(current));
|
||||
for (Runnable runnable : runnables) {
|
||||
TaskManager.runTask(runnable);
|
||||
if (runnables != null) {
|
||||
for (Runnable runnable : runnables) {
|
||||
TaskManager.runTask(runnable);
|
||||
}
|
||||
}
|
||||
runnables = null;
|
||||
blocks = null;
|
||||
blocks = new HashMap<>();
|
||||
running = false;
|
||||
slow = false;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user