fix wooden pipes not respecting blocking bluggables, fixes #2443

This commit is contained in:
Hea3veN 2015-02-08 10:27:42 -03:00
parent 1b1a075f49
commit ac2bc7ab97

View file

@ -37,8 +37,11 @@ public abstract class PipeLogicWood {
break;
}
}
if (newFacing == null) {
newFacing = ForgeDirection.UNKNOWN;
}
if (newFacing != null && newFacing.ordinal() != meta) {
if (newFacing.ordinal() != meta) {
pipe.container.getWorldObj().setBlockMetadataWithNotify(pipe.container.xCoord, pipe.container.yCoord, pipe.container.zCoord, newFacing.ordinal(), 3);
pipe.container.scheduleRenderUpdate();
}
@ -67,6 +70,10 @@ public abstract class PipeLogicWood {
return true;
}
if (pipe.container.hasBlockingPluggable(side)) {
return false;
}
TileEntity tile = tileBuffer[side.ordinal()].getTile();
return isValidConnectingTile(tile);
}