Building priority fix

This commit is contained in:
Anuken
2020-12-26 09:43:45 -05:00
parent f014339dbc
commit 4517b55f76
@@ -69,12 +69,9 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
} }
Building core = core(); Building core = core();
BuildPlan current = buildPlan();
//nothing to build. //nothing to build.
if(current == null) return; if(buildPlan() == null) return;
Tile tile = current.tile();
//find the next build request //find the next build request
if(plans.size > 1){ if(plans.size > 1){
@@ -87,6 +84,9 @@ abstract class BuilderComp implements Posc, Teamc, Rotc{
} }
} }
BuildPlan current = buildPlan();
Tile tile = current.tile();
lastActive = current; lastActive = current;
buildAlpha = 1f; buildAlpha = 1f;
if(current.breaking) lastSize = tile.block().size; if(current.breaking) lastSize = tile.block().size;