fixed network locks not being resolved when a terminal is broken

This commit is contained in:
Ellpeck 2020-05-09 12:31:04 +02:00
parent 88544368eb
commit c21a5ddbb0

View file

@ -96,6 +96,14 @@ public class ItemTerminalTileEntity extends TileEntity implements INamedContaine
} }
} }
@Override
public void remove() {
super.remove();
PipeNetwork network = PipeNetwork.get(this.world);
for (NetworkLock lock : this.pendingRequests)
network.resolveNetworkLock(lock);
}
public PipeTileEntity getConnectedPipe() { public PipeTileEntity getConnectedPipe() {
PipeNetwork network = PipeNetwork.get(this.world); PipeNetwork network = PipeNetwork.get(this.world);
for (Direction dir : Direction.values()) { for (Direction dir : Direction.values()) {