Program: 13400
Project: 13400
Buggy source:
@Override public void renderTileEntityAt(TileEntity te,double x,double y,double z,float f){
  SmartCardTerminalTileEntity terminal=(SmartCardTerminalTileEntity)te;
  if (terminal.renderInfo == null)   return;
  if (!terminal.renderInfo.getBoolean("String_Node_Str"))   return;
  if (!(terminal.getBlockMetadata() < 4))   return;
  ForgeDirection facing=ForgeDirection.VALID_DIRECTIONS[SmartCardTerminalBlock.sides[terminal.getBlockMetadata()]];
  GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
  GL11.glPushMatrix();
  GL11.glTranslated(x + 0.5,y + 0.5,z + 0.5);
switch (facing) {
case WEST:
    GL11.glRotatef(-90,0,1,0);
  break;
case NORTH:
GL11.glRotatef(180,0,1,0);
break;
case EAST:
GL11.glRotatef(90,0,1,0);
break;
default :
;
}
GL11.glPushMatrix();
GL11.glTranslatef(0,4.5f / 16,10 / 16f);
GL11.glRotatef(90,-1,0,0);
int brightness=terminal.getWorldObj().getLightBrightnessForSkyBlocks(terminal.xCoord + facing.offsetX,terminal.yCoord + facing.offsetY,terminal.zCoord + facing.offsetZ,0);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit,brightness % 65536,brightness / 65536);
EntityItem entity=new EntityItem(terminal.getWorldObj(),0,0,0,new ItemStack(NFC.smartCardItem));
entity.hoverStart=0;
RenderItem.renderInFrame=true;
RenderManager.instance.renderEntityWithPosYaw(entity,0,0,0,0,0);
RenderItem.renderInFrame=false;
GL11.glPopMatrix();
GL11.glColor3d(0,1,0);
GL11.glTranslated(-0.5,0.5,0.5005);
GL11.glScalef(1,-1,1);
bindTexture(rl);
Tessellator t=Tessellator.instance;
t.startDrawingQuads();
t.addVertexWithUV(0,1,0,0,1);
t.addVertexWithUV(5 / 16f,1,0,5 / 16f,1);
t.addVertexWithUV(5 / 16f,0,0,5 / 16f,0);
t.addVertexWithUV(0,0,0,0,0);
t.draw();
if (terminal.renderInfo.getBoolean("String_Node_Str")) {
if (terminal.renderInfo.getBoolean("String_Node_Str")) {
GL11.glColor3d(0,1,0);
}
 else {
GL11.glColor3d(254 / 255f,196 / 255f,54 / 255f);
}
}
 else {
GL11.glColor3d(1,0,0);
}
t.startDrawingQuads();
t.addVertexWithUV(5 / 16f,1,0,5 / 16f,1);
t.addVertexWithUV(1,1,0,1,1);
t.addVertexWithUV(1,0,0,1,0);
t.addVertexWithUV(5 / 16f,0,0,5 / 16f,0);
t.draw();
GL11.glColor3d(1,1,1);
GL11.glPopMatrix();
GL11.glPopAttrib();
}

Fixed version (ground truth):
@Override public void renderTileEntityAt(SmartCardTerminalTileEntity terminal,double x,double y,double z,float partialTicks,int destroyStage){
  System.out.println("String_Node_Str");
  if (terminal.renderInfo == null)   return;
  if (!(terminal.getBlockMetadata() < 4))   return;
  EnumFacing facing=EnumFacing.values()[sides[terminal.getBlockMetadata()]];
  GlStateManager.pushMatrix();
  GlStateManager.translate(x + 0.5,y + 0.5,z + 0.5);
switch (facing) {
case WEST:
    GlStateManager.rotate(-90,0,1,0);
  break;
case NORTH:
GlStateManager.rotate(180,0,1,0);
break;
case EAST:
GlStateManager.rotate(90,0,1,0);
break;
default :
;
}
GlStateManager.pushMatrix();
GlStateManager.translate(0,4.5f / 16,5 / 16f);
GlStateManager.rotate(90,-1,0,0);
int brightness=terminal.getWorld().getCombinedLight(new BlockPos(terminal.getPos().getX() + facing.getFrontOffsetX(),terminal.getPos().getY() + facing.getFrontOffsetY(),terminal.getPos().getZ() + facing.getFrontOffsetZ()),0);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit,brightness % 65536,brightness / 65536);
EntityItem entity=new EntityItem(terminal.getWorld(),0,0,0,new ItemStack(NFC.smartCardItem));
entity.hoverStart=0;
Minecraft.getMinecraft().getRenderItem().renderItem(entity.getEntityItem(),ItemCameraTransforms.TransformType.FIXED);
GlStateManager.popMatrix();
GlStateManager.color(0f,1f,0f);
GlStateManager.translate(-0.5,0.5,0.5005);
GlStateManager.scale(1,-1,1);
bindTexture(rl);
VertexBuffer t=Tessellator.getInstance().getBuffer();
t.begin(GL11.GL_QUADS,DefaultVertexFormats.POSITION_TEX);
t.pos(0,1,0).tex(0,1).endVertex();
t.pos(5 / 16f,1,0).tex(5 / 16f,1).endVertex();
t.pos(5 / 16f,0,0).tex(5 / 16f,0).endVertex();
t.pos(0,0,0).tex(0,0).endVertex();
Tessellator.getInstance().draw();
if (terminal.renderInfo.getBoolean("String_Node_Str")) {
if (terminal.renderInfo.getBoolean("String_Node_Str")) {
GlStateManager.color(0f,1f,0f);
}
 else {
GlStateManager.color(254 / 255f,196 / 255f,54 / 255f);
}
}
 else {
GlStateManager.color(1f,0f,0f);
}
t.begin(GL11.GL_QUADS,DefaultVertexFormats.POSITION_TEX);
t.pos(5 / 16f,1,0).tex(5 / 16f,1).endVertex();
t.pos(1,1,0).tex(1,1).endVertex();
t.pos(1,0,0).tex(1,0).endVertex();
t.pos(5 / 16f,0,0).tex(5 / 16f,0).endVertex();
Tessellator.getInstance().draw();
GlStateManager.color(1,1,1);
GlStateManager.popMatrix();
}