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

View File

@@ -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++;