Program: 157117
Project: 157117
Buggy source:
private static void renderStoneHUD(Minecraft minecraft,EntityPlayer player,ItemStack stack,float partialTicks){
  float overlayScale=2F;
  float blockScale=overlayScale / 2;
  float overlayOpacity=1F;
  MovingObjectPosition rayTrace=minecraft.objectMouseOver;
  ItemStack currentBlock=null;
  if ((player.worldObj != null) && (rayTrace != null)) {
    currentBlock=TransmutationHelper.getNextBlock(player.worldObj.getBlockId(rayTrace.blockX,rayTrace.blockY,rayTrace.blockZ),player.worldObj.getBlockMetadata(rayTrace.blockX,rayTrace.blockY,rayTrace.blockZ),player.isSneaking());
  }
  GL11.glPushMatrix();
  ScaledResolution sr=new ScaledResolution(minecraft.gameSettings,minecraft.displayWidth,minecraft.displayHeight);
  GL11.glClear(256);
  GL11.glMatrixMode(GL11.GL_PROJECTION);
  GL11.glLoadIdentity();
  GL11.glOrtho(0.0D,sr.getScaledWidth_double(),sr.getScaledHeight_double(),0.0D,1000.0D,3000.0D);
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  GL11.glLoadIdentity();
  GL11.glTranslatef(0.0F,0.0F,-2000.0F);
  GL11.glPushMatrix();
  RenderHelper.enableGUIStandardItemLighting();
  GL11.glDisable(GL11.GL_LIGHTING);
  GL11.glEnable(GL12.GL_RESCALE_NORMAL);
  GL11.glEnable(GL11.GL_COLOR_MATERIAL);
  GL11.glEnable(GL11.GL_LIGHTING);
  RenderUtils.renderItemIntoGUI(minecraft.fontRenderer,minecraft.renderEngine,stack,(int)(sr.getScaledWidth() - (16 * overlayScale)),(int)(sr.getScaledHeight() - (16 * overlayScale)),overlayOpacity / 2,overlayScale);
  if ((currentBlock != null) && (currentBlock.getItem() instanceof ItemBlock)) {
    RenderUtils.renderRotatingBlockIntoGUI(minecraft.fontRenderer,minecraft.renderEngine,currentBlock,(int)(sr.getScaledWidth() - (16 * overlayScale) / 2 - 8),(int)(sr.getScaledHeight() - (16 * overlayScale) / 2 - 8),-90,blockScale);
  }
  GL11.glDisable(GL11.GL_LIGHTING);
  GL11.glPopMatrix();
  GL11.glPopMatrix();
}

Fixed version (ground truth):
private static void renderStoneHUD(Minecraft minecraft,EntityPlayer player,ItemStack stack,float partialTicks){
  float overlayScale=2F;
  float blockScale=overlayScale / 2;
  float overlayOpacity=0.5F;
  MovingObjectPosition rayTrace=minecraft.objectMouseOver;
  ItemStack currentBlock=null;
  if ((player.worldObj != null) && (rayTrace != null)) {
    currentBlock=TransmutationHelper.getNextBlock(player.worldObj.getBlockId(rayTrace.blockX,rayTrace.blockY,rayTrace.blockZ),player.worldObj.getBlockMetadata(rayTrace.blockX,rayTrace.blockY,rayTrace.blockZ),player.isSneaking());
  }
  GL11.glPushMatrix();
  ScaledResolution sr=new ScaledResolution(minecraft.gameSettings,minecraft.displayWidth,minecraft.displayHeight);
  GL11.glClear(256);
  GL11.glMatrixMode(GL11.GL_PROJECTION);
  GL11.glLoadIdentity();
  GL11.glOrtho(0.0D,sr.getScaledWidth_double(),sr.getScaledHeight_double(),0.0D,1000.0D,3000.0D);
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  GL11.glLoadIdentity();
  GL11.glTranslatef(0.0F,0.0F,-2000.0F);
  GL11.glPushMatrix();
  RenderHelper.enableGUIStandardItemLighting();
  GL11.glDisable(GL11.GL_LIGHTING);
  GL11.glEnable(GL12.GL_RESCALE_NORMAL);
  GL11.glEnable(GL11.GL_COLOR_MATERIAL);
  GL11.glEnable(GL11.GL_LIGHTING);
  RenderUtils.renderItemIntoGUI(minecraft.fontRenderer,minecraft.renderEngine,stack,(int)(sr.getScaledWidth() - (16 * overlayScale)),(int)(sr.getScaledHeight() - (16 * overlayScale)),overlayOpacity,overlayScale);
  if ((currentBlock != null) && (currentBlock.getItem() instanceof ItemBlock)) {
    RenderUtils.renderRotatingBlockIntoGUI(minecraft.fontRenderer,minecraft.renderEngine,currentBlock,(int)(sr.getScaledWidth() - (16 * overlayScale) / 2 - 8),(int)(sr.getScaledHeight() - (16 * overlayScale) / 2 - 8),-90,blockScale);
  }
  GL11.glDisable(GL11.GL_LIGHTING);
  GL11.glPopMatrix();
  GL11.glPopMatrix();
}