This commit is contained in:
Anuken
2022-08-05 14:25:37 -04:00
parent 8b6d3a67f3
commit 6a5d7da4ae
3 changed files with 4 additions and 3 deletions

View File

@@ -98,8 +98,9 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
//find the next build plan
if(plans.size > 1){
int total = 0;
int size = plans.size;
BuildPlan plan;
while((!within((plan = buildPlan()).tile(), finalPlaceDst) || shouldSkip(plan, core)) && total < plans.size){
while((!within((plan = buildPlan()).tile(), finalPlaceDst) || shouldSkip(plan, core)) && total < size){
plans.removeFirst();
plans.addLast(plan);
total++;