mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Building priority fix
This commit is contained in:
parent
f014339dbc
commit
4517b55f76
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user