Program: 30725
Project: 30725
Buggy source:
@SideOnly(Side.CLIENT) public void rendereGlassConection(int x,int y,int z,IPartRenderHelper rh,RenderBlocks renderer,ForgeDirection of){
  TileEntity te=this.tile.getWorldObj().getTileEntity(x + of.offsetX,y + of.offsetY,z + of.offsetZ);
  IPartHost ccph=te instanceof IPartHost ? (IPartHost)te : null;
  IGridHost gh=te instanceof IGridHost ? (IGridHost)te : null;
  rh.setFacesToRender(EnumSet.complementOf(EnumSet.of(of,of.getOpposite())));
  if (gh != null && ccph != null && gh.getCableConnectionType(of) == AECableType.GLASS && ccph.getColor() != AEColor.Transparent && ccph.getPart(of.getOpposite()) == null)   rh.setTexture(getTexture(ccph.getColor()));
 else   if (ccph == null && gh != null && gh.getCableConnectionType(of) != AECableType.GLASS) {
    rh.setTexture(getCoveredTexture(getCableColor()));
switch (of) {
case DOWN:
      rh.setBounds(5,0,5,11,4,11);
    break;
case EAST:
  rh.setBounds(12,5,5,16,11,11);
break;
case NORTH:
rh.setBounds(5,5,0,11,11,4);
break;
case SOUTH:
rh.setBounds(5,5,12,11,11,16);
break;
case UP:
rh.setBounds(5,12,5,11,16,11);
break;
case WEST:
rh.setBounds(0,5,5,4,11,11);
break;
default :
return;
}
rh.renderBlock(x,y,z,renderer);
rh.setTexture(getTexture(getCableColor()));
}
 else rh.setTexture(getTexture(getCableColor()));
switch (of) {
case DOWN:
rh.setBounds(6,0,6,10,6,10);
break;
case EAST:
rh.setBounds(10,6,6,16,10,10);
break;
case NORTH:
rh.setBounds(6,6,0,10,10,6);
break;
case SOUTH:
rh.setBounds(6,6,10,10,10,16);
break;
case UP:
rh.setBounds(6,10,6,10,16,10);
break;
case WEST:
rh.setBounds(0,6,6,6,10,10);
break;
default :
return;
}
rh.renderBlock(x,y,z,renderer);
rh.setFacesToRender(EnumSet.allOf(ForgeDirection.class));
}

Fixed version (ground truth):
@SideOnly(Side.CLIENT) public void rendereGlassConection(int x,int y,int z,IPartRenderHelper rh,RenderBlocks renderer,ForgeDirection of){
  TileEntity te=this.tile.getWorldObj().getTileEntity(x + of.offsetX,y + of.offsetY,z + of.offsetZ);
  IPartHost ccph=te instanceof IPartHost ? (IPartHost)te : null;
  IGridHost gh=te instanceof IGridHost ? (IGridHost)te : null;
  rh.setFacesToRender(EnumSet.complementOf(EnumSet.of(of)));
  if (gh != null && ccph != null && gh.getCableConnectionType(of) == AECableType.GLASS && ccph.getColor() != AEColor.Transparent && ccph.getPart(of.getOpposite()) == null)   rh.setTexture(getTexture(ccph.getColor()));
 else   if (ccph == null && gh != null && gh.getCableConnectionType(of) != AECableType.GLASS) {
    rh.setTexture(getCoveredTexture(getCableColor()));
switch (of) {
case DOWN:
      rh.setBounds(5,0,5,11,4,11);
    break;
case EAST:
  rh.setBounds(12,5,5,16,11,11);
break;
case NORTH:
rh.setBounds(5,5,0,11,11,4);
break;
case SOUTH:
rh.setBounds(5,5,12,11,11,16);
break;
case UP:
rh.setBounds(5,12,5,11,16,11);
break;
case WEST:
rh.setBounds(0,5,5,4,11,11);
break;
default :
return;
}
rh.renderBlock(x,y,z,renderer);
rh.setTexture(getTexture(getCableColor()));
}
 else rh.setTexture(getTexture(getCableColor()));
switch (of) {
case DOWN:
rh.setBounds(6,0,6,10,6,10);
break;
case EAST:
rh.setBounds(10,6,6,16,10,10);
break;
case NORTH:
rh.setBounds(6,6,0,10,10,6);
break;
case SOUTH:
rh.setBounds(6,6,10,10,10,16);
break;
case UP:
rh.setBounds(6,10,6,10,16,10);
break;
case WEST:
rh.setBounds(0,6,6,6,10,10);
break;
default :
return;
}
rh.renderBlock(x,y,z,renderer);
rh.setFacesToRender(EnumSet.allOf(ForgeDirection.class));
}