mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 19:58:35 +01:00
fixed pipe items getting stuck when inserting into themselves
This commit is contained in:
parent
68933f4b49
commit
50e2285680
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ public class PipeItem implements INBTSerializable<CompoundNBT> {
|
||||||
|
|
||||||
float speed = 0.05F;
|
float speed = 0.05F;
|
||||||
BlockPos myPos = new BlockPos(this.x, this.y, this.z);
|
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
|
// we're done with the current pipe, so switch to the next one
|
||||||
currPipe.items.remove(this);
|
currPipe.items.remove(this);
|
||||||
PipeTileEntity next = this.getNextTile(currPipe, true);
|
PipeTileEntity next = this.getNextTile(currPipe, true);
|
||||||
|
|
Loading…
Reference in a new issue