Fixed #8507
This commit is contained in:
@@ -33,6 +33,7 @@ public class PayloadConveyor extends Block{
|
||||
priority = TargetPriority.transport;
|
||||
envEnabled |= Env.space | Env.underwater;
|
||||
sync = true;
|
||||
underBullets = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -492,6 +492,12 @@ 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