Improve progressEstimation function
This commit is contained in:
parent
aed400ddae
commit
083c6c06c2
|
@ -66,7 +66,6 @@ public class CombinedRenderTask<T extends RenderTask> implements RenderTask {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double estimateProgress() {
|
public double estimateProgress() {
|
||||||
if (!hasMoreWork()) return 1;
|
|
||||||
int currentTask = this.currentTaskIndex;
|
int currentTask = this.currentTaskIndex;
|
||||||
if (currentTask >= this.tasks.size()) return 1;
|
if (currentTask >= this.tasks.size()) return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue