Building priority fix
This commit is contained in:
@@ -69,12 +69,9 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
|
||||
}
|
||||
|
||||
Building core = core();
|
||||
BuildPlan current = buildPlan();
|
||||
|
||||
//nothing to build.
|
||||
if(current == null) return;
|
||||
|
||||
Tile tile = current.tile();
|
||||
if(buildPlan() == null) return;
|
||||
|
||||
//find the next build request
|
||||
if(plans.size > 1){
|
||||
@@ -87,6 +84,9 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
|
||||
}
|
||||
}
|
||||
|
||||
BuildPlan current = buildPlan();
|
||||
Tile tile = current.tile();
|
||||
|
||||
lastActive = current;
|
||||
buildAlpha = 1f;
|
||||
if(current.breaking) lastSize = tile.block().size;
|
||||
|
||||
Reference in New Issue
Block a user