negative ETAs are actually impossible now

This commit is contained in:
ZacSharp 2020-09-05 22:13:05 +02:00
parent 303aa79ffb
commit 10e3a5afc4
No known key found for this signature in database
GPG Key ID: 9453647B005083A3

View File

@ -388,9 +388,6 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
return Optional.empty();
}
double eta = Math.abs(current) * ticksElapsedSoFar / Math.abs(start - current);
if (eta < 0 || current < 0){
return Optional.empty();
}
return Optional.of(eta);
}