Building priority fix

This commit is contained in:
Anuken 2020-12-26 09:43:45 -05:00
parent f014339dbc
commit 4517b55f76

View File

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