Fixed #9342
This commit is contained in:
@@ -109,8 +109,8 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
|
|||||||
|
|
||||||
var core = core();
|
var core = core();
|
||||||
|
|
||||||
//nothing to build.
|
//nothing to build, or core doesn't exist
|
||||||
if(buildPlan() == null) return;
|
if(buildPlan() == null || (core == null && !infinite)) return;
|
||||||
|
|
||||||
//find the next build plan
|
//find the next build plan
|
||||||
if(plans.size > 1){
|
if(plans.size > 1){
|
||||||
@@ -163,7 +163,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if there is no core to build with or no build entity, stop building!
|
//if there is no core to build with or no build entity, stop building!
|
||||||
if((core == null && !infinite) || !(tile.build instanceof ConstructBuild entity)){
|
if(!(tile.build instanceof ConstructBuild entity)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user