@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user