Program: 30845
Project: 30845
Buggy source:
@Override public void renderStatic(int x,int y,int z,IPartRenderHelper rh,RenderBlocks renderer){
  boolean useCovered=false;
  for (  ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
    IPart p=getHost().getPart(dir);
    if (p != null && p instanceof IGridHost) {
      IGridHost igh=(IGridHost)p;
      AECableType type=igh.getCableConnectionType(dir.getOpposite());
      if (type == AECableType.COVERED || type == AECableType.SMART) {
        useCovered=true;
        break;
      }
    }
  }
  if (useCovered) {
    rh.setTexture(getCoveredTexture(getCableColor()));
  }
 else {
    rh.setTexture(getTexture(getCableColor()));
  }
  IPartHost ph=getHost();
  for (  ForgeDirection of : EnumSet.complementOf(connections)) {
    IPart bp=ph.getPart(of);
    if (bp instanceof IGridHost) {
      int len=bp.cableConnectionRenderTo();
      if (len < 8) {
switch (of) {
case DOWN:
          rh.setBounds(6,len,6,10,6,10);
        break;
case EAST:
      rh.setBounds(10,6,6,16 - len,10,10);
    break;
case NORTH:
  rh.setBounds(6,6,len,10,10,6);
break;
case SOUTH:
rh.setBounds(6,6,10,10,10,16 - len);
break;
case UP:
rh.setBounds(6,10,6,10,16 - len,10);
break;
case WEST:
rh.setBounds(len,6,6,6,10,10);
break;
default :
continue;
}
rh.renderBlock(x,y,z,renderer);
}
}
}
if (connections.size() != 2 || !nonLinear(connections) || useCovered) {
if (useCovered) {
rh.setBounds(5,5,5,11,11,11);
rh.renderBlock(x,y,z,renderer);
}
 else {
rh.setBounds(6,6,6,10,10,10);
rh.renderBlock(x,y,z,renderer);
}
for (ForgeDirection of : connections) {
rendereGlassConection(x,y,z,rh,renderer,of);
}
}
 else {
Icon def=getTexture(getCableColor());
rh.setTexture(def);
for (ForgeDirection of : connections) {
switch (of) {
case DOWN:
case UP:
renderer.setRenderBounds(6 / 16.0,0,6 / 16.0,10 / 16.0,16 / 16.0,10 / 16.0);
break;
case EAST:
case WEST:
renderer.uvRotateEast=renderer.uvRotateWest=1;
renderer.uvRotateBottom=renderer.uvRotateTop=1;
renderer.setRenderBounds(0,6 / 16.0,6 / 16.0,16 / 16.0,10 / 16.0,10 / 16.0);
break;
case NORTH:
case SOUTH:
renderer.uvRotateNorth=renderer.uvRotateSouth=1;
renderer.setRenderBounds(6 / 16.0,6 / 16.0,0,10 / 16.0,10 / 16.0,16 / 16.0);
break;
default :
continue;
}
}
renderer.renderStandardBlock(rh.getBlock(),x,y,z);
}
rh.setTexture(null);
}

Fixed version (ground truth):
@Override public void renderStatic(int x,int y,int z,IPartRenderHelper rh,RenderBlocks renderer){
  boolean useCovered=false;
  boolean requireDetailed=false;
  for (  ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
    IPart p=getHost().getPart(dir);
    if (p != null && p instanceof IGridHost) {
      IGridHost igh=(IGridHost)p;
      AECableType type=igh.getCableConnectionType(dir.getOpposite());
      if (type == AECableType.COVERED || type == AECableType.SMART) {
        useCovered=true;
        break;
      }
    }
 else     if (connections.contains(dir)) {
      TileEntity te=this.tile.worldObj.getBlockTileEntity(x + dir.offsetX,y + dir.offsetY,z + dir.offsetZ);
      IPartHost ccph=te instanceof IPartHost ? (IPartHost)te : null;
      IGridHost gh=te instanceof IGridHost ? (IGridHost)te : null;
      if (ccph == null && gh != null && gh.getCableConnectionType(dir) != AECableType.GLASS)       requireDetailed=true;
    }
  }
  if (useCovered) {
    rh.setTexture(getCoveredTexture(getCableColor()));
  }
 else {
    rh.setTexture(getTexture(getCableColor()));
  }
  IPartHost ph=getHost();
  for (  ForgeDirection of : EnumSet.complementOf(connections)) {
    IPart bp=ph.getPart(of);
    if (bp instanceof IGridHost) {
      int len=bp.cableConnectionRenderTo();
      if (len < 8) {
switch (of) {
case DOWN:
          rh.setBounds(6,len,6,10,6,10);
        break;
case EAST:
      rh.setBounds(10,6,6,16 - len,10,10);
    break;
case NORTH:
  rh.setBounds(6,6,len,10,10,6);
break;
case SOUTH:
rh.setBounds(6,6,10,10,10,16 - len);
break;
case UP:
rh.setBounds(6,10,6,10,16 - len,10);
break;
case WEST:
rh.setBounds(len,6,6,6,10,10);
break;
default :
continue;
}
rh.renderBlock(x,y,z,renderer);
}
}
}
if (connections.size() != 2 || !nonLinear(connections) || useCovered || requireDetailed) {
if (useCovered) {
rh.setBounds(5,5,5,11,11,11);
rh.renderBlock(x,y,z,renderer);
}
 else {
rh.setBounds(6,6,6,10,10,10);
rh.renderBlock(x,y,z,renderer);
}
for (ForgeDirection of : connections) {
rendereGlassConection(x,y,z,rh,renderer,of);
}
}
 else {
Icon def=getTexture(getCableColor());
rh.setTexture(def);
for (ForgeDirection of : connections) {
switch (of) {
case DOWN:
case UP:
renderer.setRenderBounds(6 / 16.0,0,6 / 16.0,10 / 16.0,16 / 16.0,10 / 16.0);
break;
case EAST:
case WEST:
renderer.uvRotateEast=renderer.uvRotateWest=1;
renderer.uvRotateBottom=renderer.uvRotateTop=1;
renderer.setRenderBounds(0,6 / 16.0,6 / 16.0,16 / 16.0,10 / 16.0,10 / 16.0);
break;
case NORTH:
case SOUTH:
renderer.uvRotateNorth=renderer.uvRotateSouth=1;
renderer.setRenderBounds(6 / 16.0,6 / 16.0,0,10 / 16.0,10 / 16.0,16 / 16.0);
break;
default :
continue;
}
}
renderer.renderStandardBlock(rh.getBlock(),x,y,z);
}
rh.setTexture(null);
}