This commit is contained in:
boy0001
2015-07-17 13:48:23 +10:00
parent d0b90c2679
commit f471a05dcd
7 changed files with 182 additions and 173 deletions

View File

@ -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;