diff --git a/src/main/java/de/ellpeck/prettypipes/terminal/ItemTerminalTileEntity.java b/src/main/java/de/ellpeck/prettypipes/terminal/ItemTerminalTileEntity.java index af8f9a8..3dbd7e4 100644 --- a/src/main/java/de/ellpeck/prettypipes/terminal/ItemTerminalTileEntity.java +++ b/src/main/java/de/ellpeck/prettypipes/terminal/ItemTerminalTileEntity.java @@ -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() { PipeNetwork network = PipeNetwork.get(this.world); for (Direction dir : Direction.values()) {