mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-29 12:37:53 +01:00
Use correct time for progress task
This commit is contained in:
parent
80417bdc2b
commit
362067f90d
@ -51,10 +51,11 @@ public class DefaultProgressTracker extends RunnableVal2<FaweQueue.ProgressType,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final void done() {
|
private final void done() {
|
||||||
|
final long time = System.currentTimeMillis() - start;
|
||||||
TaskManager.IMP.task(new Runnable() {
|
TaskManager.IMP.task(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
doneTask();
|
doneTask(time);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -75,8 +76,7 @@ public class DefaultProgressTracker extends RunnableVal2<FaweQueue.ProgressType,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doneTask() {
|
public void doneTask(long time) {
|
||||||
final long time = System.currentTimeMillis() - start;
|
|
||||||
player.sendTitle("", BBC.PROGRESS_DONE.format(time / 1000d));
|
player.sendTitle("", BBC.PROGRESS_DONE.format(time / 1000d));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user