use the correct start inventory for re-routing

This commit is contained in:
Ell 2020-09-02 22:17:12 +02:00
parent 7667adaac1
commit a56896b2b2

View file

@ -164,7 +164,7 @@ public class PipeItem implements INBTSerializable<CompoundNBT>, ILiquidContainer
return;
}
// second time: we arrived at our input chest, it is full, so we try to find a different goal location
ItemStack remain = network.routeItem(currPipe.getPos(), this.startInventory, this.stack, (stack, speed) -> this, false);
ItemStack remain = network.routeItem(currPipe.getPos(), this.destInventory, this.stack, (stack, speed) -> this, false);
if (remain.isEmpty())
return;
this.stack = remain;