Search bar cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user