From 50e22856808ba78140fe436a2cdcee123ebbc121 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 16 Apr 2020 16:44:23 +0200 Subject: [PATCH] fixed pipe items getting stuck when inserting into themselves --- src/main/java/de/ellpeck/prettypipes/network/PipeItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/prettypipes/network/PipeItem.java b/src/main/java/de/ellpeck/prettypipes/network/PipeItem.java index 411684d..3df4900 100644 --- a/src/main/java/de/ellpeck/prettypipes/network/PipeItem.java +++ b/src/main/java/de/ellpeck/prettypipes/network/PipeItem.java @@ -81,7 +81,7 @@ public class PipeItem implements INBTSerializable { float speed = 0.05F; BlockPos myPos = new BlockPos(this.x, this.y, this.z); - if (!myPos.equals(currPipe.getPos()) && !myPos.equals(this.startInventory)) { + if (!myPos.equals(currPipe.getPos()) && (this.reachedDestination() || !myPos.equals(this.startInventory))) { // we're done with the current pipe, so switch to the next one currPipe.items.remove(this); PipeTileEntity next = this.getNextTile(currPipe, true);