fixed pipe items getting stuck when inserting into themselves

This commit is contained in:
Ellpeck 2020-04-16 16:44:23 +02:00
parent 68933f4b49
commit 50e2285680

View file

@ -81,7 +81,7 @@ public class PipeItem implements INBTSerializable<CompoundNBT> {
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);