Search bar cleanup

This commit is contained in:
Anuken
2020-12-26 11:39:58 -05:00
parent 8e4b35eb07
commit c02d603a7a
5 changed files with 32 additions and 30 deletions
@@ -77,7 +77,7 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
if(plans.size > 1){
int total = 0;
BuildPlan req;
while((dst((req = buildPlan()).tile()) > finalPlaceDst || shouldSkip(req, core)) && total < plans.size){
while((!within((req = buildPlan()).tile(), finalPlaceDst) || shouldSkip(req, core)) && total < plans.size){
plans.removeFirst();
plans.addLast(req);
total++;
@@ -8,6 +8,7 @@ abstract class TimerComp{
transient Interval timer = new Interval(6);
public boolean timer(int index, float time){
if(Float.isInfinite(time)) return false;
return timer.get(index, time);
}
}