From c21a5ddbb0ca7585e3b7351a5dfac2e92f493134 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 9 May 2020 12:31:04 +0200 Subject: [PATCH] fixed network locks not being resolved when a terminal is broken --- .../prettypipes/terminal/ItemTerminalTileEntity.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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()) {