Additional Pipes for Buildcraft

Additional Pipes for Buildcraft

604k Downloads

Another little bug in Distribution Pipe - probably this could fix it.

johhnyL opened this issue ยท 0 comments

commented

When testing the DPipe noticed it still wasn't routing properly. Had a look at the code with a friend, and perhaps saw a little typo.

private void toNextOpenSide() {
logic.curTick = 0;
for (int o = 0; o < logic.distData.length; ++o) {
logic.distSide = (logic.distSide + 1) % logic.distData.length;
if (logic.distData[logic.distSide] > 0 &&
container.isPipeConnected(ForgeDirection.VALID_DIRECTIONS[o])) {
break;
}
}

container.isPipeConnected(ForgeDirection.VALID_DIRECTIONS[o] probably needs to be

container.isPipeConnected([ForgeDirection.VALID_DIRECTIONS[logic.distSide] ?

Recompiled with the correction, seems to work.