negative ETAs are actually impossible now
This commit is contained in:
parent
303aa79ffb
commit
10e3a5afc4
@ -388,9 +388,6 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
|
|||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
double eta = Math.abs(current) * ticksElapsedSoFar / Math.abs(start - current);
|
double eta = Math.abs(current) * ticksElapsedSoFar / Math.abs(start - current);
|
||||||
if (eta < 0 || current < 0){
|
|
||||||
return Optional.empty();
|
|
||||||
}
|
|
||||||
return Optional.of(eta);
|
return Optional.of(eta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user