This commit is contained in:
Anuken
2023-05-13 10:51:05 -04:00
parent ebb40145ac
commit 89e942ee35
2 changed files with 8 additions and 6 deletions

View File

@@ -47,6 +47,14 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
updateBuildLogic();
}
@Override
public void afterRead(){
//why would this happen?
if(plans == null){
plans = new Queue<>(1);
}
}
public void validatePlans(){
if(plans.size > 0){
Iterator<BuildPlan> it = plans.iterator();

View File

@@ -492,12 +492,6 @@ public class CoreBlock extends StorageBlock{
storageCapacity = itemCapacity + proximity().sum(e -> owns(e) ? e.block.itemCapacity : 0);
proximity.each(this::owns, t -> {
//add inventory if there is something in it from a payload
if(t.items != items){
items.add(t.items);
t.items.clear();
}
t.items = items;
((StorageBuild)t).linkedCore = this;
});