Program: 157116
Project: 157116
Buggy source:
public void drawInWorldTransmutationOverlay(DrawBlockHighlightEvent event){
  double x=event.target.blockX + 0.5F;
  double y=event.target.blockY + 0.5F;
  double z=event.target.blockZ + 0.5F;
  double iPX=event.player.prevPosX + (event.player.posX - event.player.prevPosX) * event.partialTicks;
  double iPY=event.player.prevPosY + (event.player.posY - event.player.prevPosY) * event.partialTicks;
  double iPZ=event.player.prevPosZ + (event.player.posZ - event.player.prevPosZ) * event.partialTicks;
  int texture=event.context.renderEngine.getTexture(Sprites.SPRITE_SHEET_LOCATION + Sprites.WORLD_TRANSMUTATION_TEXTURE);
  int xScale=1;
  int yScale=1;
  int zScale=1;
  int chargeLevel;
  int itemChargeLevel=0;
  if (event.currentItem.getItem() instanceof IChargeable) {
    itemChargeLevel=((IChargeable)event.currentItem.getItem()).getCharge(event.currentItem);
  }
  chargeLevel=1 + itemChargeLevel * 2;
  if ((event.target.sideHit == 0) || (event.target.sideHit == 1)) {
    xScale=chargeLevel;
    zScale=chargeLevel;
  }
 else   if ((event.target.sideHit == 2) || (event.target.sideHit == 3)) {
    xScale=chargeLevel;
    yScale=chargeLevel;
  }
 else   if ((event.target.sideHit == 4) || (event.target.sideHit == 5)) {
    yScale=chargeLevel;
    zScale=chargeLevel;
  }
  float xShift=0.1F;
  float yShift=0.1F;
  float zShift=0.1F;
  if (event.target.sideHit == 0) {
    xShift=0;
    yShift=-yShift;
    zShift=0;
  }
 else   if (event.target.sideHit == 1) {
    xShift=0;
    zShift=0;
  }
 else   if (event.target.sideHit == 2) {
    xShift=0;
    yShift=0;
    if (chargeLevel > 1) {
      zShift=-zShift - 1;
    }
 else {
      zShift=-zShift;
    }
  }
 else   if (event.target.sideHit == 3) {
    xShift=0;
    yShift=0;
  }
 else   if (event.target.sideHit == 4) {
    xShift=-xShift;
    yShift=0;
    zShift=0;
  }
 else   if (event.target.sideHit == 5) {
    yShift=0;
    zShift=0;
  }
  GL11.glDepthMask(false);
  GL11.glDisable(GL11.GL_CULL_FACE);
  for (int i=0; i < 6; i++) {
    ForgeDirection forgeDir=ForgeDirection.getOrientation(i);
    GL11.glPushMatrix();
    GL11.glTranslated(-iPX + x + xShift,-iPY + y + yShift,-iPZ + z + zShift);
    GL11.glScalef(1F * xScale,1F * yScale,1F * zScale);
    GL11.glRotatef(90,forgeDir.offsetX,forgeDir.offsetY,forgeDir.offsetZ);
    GL11.glTranslated(0,0,0.5f);
    GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
    renderSlidingQuad(texture,0.75F);
    GL11.glPopMatrix();
  }
  GL11.glEnable(GL11.GL_CULL_FACE);
  GL11.glDepthMask(true);
}

Fixed version (ground truth):
public void drawInWorldTransmutationOverlay(DrawBlockHighlightEvent event){
  double x=event.target.blockX + 0.5F;
  double y=event.target.blockY + 0.5F;
  double z=event.target.blockZ + 0.5F;
  double iPX=event.player.prevPosX + (event.player.posX - event.player.prevPosX) * event.partialTicks;
  double iPY=event.player.prevPosY + (event.player.posY - event.player.prevPosY) * event.partialTicks;
  double iPZ=event.player.prevPosZ + (event.player.posZ - event.player.prevPosZ) * event.partialTicks;
  int texture=event.context.renderEngine.getTexture(Sprites.SPRITE_SHEET_LOCATION + Sprites.WORLD_TRANSMUTATION_TEXTURE);
  float xScale=1;
  float yScale=1;
  float zScale=1;
  float xShift=0.1F;
  float yShift=0.1F;
  float zShift=0.1F;
  int chargeLevel;
  int itemChargeLevel=0;
  if (event.currentItem.getItem() instanceof IChargeable) {
    itemChargeLevel=((IChargeable)event.currentItem.getItem()).getCharge(event.currentItem);
  }
  chargeLevel=1 + itemChargeLevel * 2;
  ForgeDirection sideHit=ForgeDirection.getOrientation(event.target.sideHit);
switch (sideHit) {
case UP:
{
      xScale=chargeLevel + 0.1F;
      zScale=chargeLevel + 0.1F;
      xShift=0;
      zShift=0;
      break;
    }
case DOWN:
{
    xScale=chargeLevel + 0.1F;
    zScale=chargeLevel + 0.1F;
    xShift=0;
    yShift=-yShift;
    zShift=0;
    break;
  }
case NORTH:
{
  xScale=chargeLevel + 0.1F;
  yScale=chargeLevel + 0.1F;
  xShift=0;
  yShift=0;
  zShift=-zShift;
  break;
}
case SOUTH:
{
xScale=chargeLevel + 0.1F;
yScale=chargeLevel + 0.1F;
xShift=0;
yShift=0;
break;
}
case EAST:
{
yScale=chargeLevel + 0.1F;
zScale=chargeLevel + 0.1F;
yShift=0;
zShift=0;
break;
}
case WEST:
{
yScale=chargeLevel + 0.1F;
zScale=chargeLevel + 0.1F;
xShift=-xShift;
yShift=0;
zShift=0;
break;
}
default :
break;
}
GL11.glDepthMask(false);
GL11.glDisable(GL11.GL_CULL_FACE);
for (int i=0; i < 6; i++) {
ForgeDirection forgeDir=ForgeDirection.getOrientation(i);
int zCorrection=(i == 2) ? -1 : 1;
GL11.glPushMatrix();
GL11.glTranslated(-iPX + x + xShift,-iPY + y + yShift,-iPZ + z + zShift);
GL11.glScalef(1F * xScale,1F * yScale,1F * zScale);
GL11.glRotatef(90,forgeDir.offsetX,forgeDir.offsetY,forgeDir.offsetZ);
GL11.glTranslated(0,0,0.5f * zCorrection);
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
renderPulsingQuad(texture,0.75F);
GL11.glPopMatrix();
}
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glDepthMask(true);
}