Fixed #8602
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user