mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-30 00:56:45 +01:00
This may also be useful
This commit is contained in:
parent
d650c3dd86
commit
2335708e11
@ -19,7 +19,7 @@ public class DebugSetBlockQueue {
|
|||||||
this.allocate = t;
|
this.allocate = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DebugSetBlockQueue() {
|
public DebugSetBlockQueue(final Runnable whenDone) {
|
||||||
blocks = new HashMap<>();
|
blocks = new HashMap<>();
|
||||||
TaskManager.index.increment();
|
TaskManager.index.increment();
|
||||||
final int current = TaskManager.index.intValue();
|
final int current = TaskManager.index.intValue();
|
||||||
@ -29,6 +29,7 @@ public class DebugSetBlockQueue {
|
|||||||
if (blocks.size() == 0) {
|
if (blocks.size() == 0) {
|
||||||
blocks = null;
|
blocks = null;
|
||||||
Bukkit.getScheduler().cancelTask(TaskManager.tasks.get(current));
|
Bukkit.getScheduler().cancelTask(TaskManager.tasks.get(current));
|
||||||
|
TaskManager.runTask(whenDone);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
long start = System.currentTimeMillis() + allocate;
|
long start = System.currentTimeMillis() + allocate;
|
||||||
|
Loading…
Reference in New Issue
Block a user