Program: 156748
Project: 156748
Buggy source:
private void render(float progress,ForgeDirection orientation,ResourceLocation baseTexture,ResourceLocation chamberTexture,ResourceLocation trunkTexture,double x,double y,double z){
  if (BuildCraftCore.render == RenderMode.NoDynamic) {
    return;
  }
  GL11.glPushMatrix();
  GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
  GL11.glEnable(GL11.GL_LIGHTING);
  GL11.glDisable(GL11.GL_BLEND);
  GL11.glEnable(GL11.GL_CULL_FACE);
  GL11.glColor3f(1,1,1);
  GL11.glTranslatef((float)x,(float)y,(float)z);
  float step;
  if (progress > 0.5) {
    step=7.99F - (progress - 0.5F) * 2F * 7.99F;
  }
 else {
    step=progress * 2F * 7.99F;
  }
  float translatefact=step / 16;
  float[] angle={0,0,0};
  float[] translate={orientation.offsetX,orientation.offsetY,orientation.offsetZ};
switch (orientation) {
case EAST:
case WEST:
case DOWN:
    angle[2]=angleMap[orientation.ordinal()];
  break;
case SOUTH:
case NORTH:
default :
angle[0]=angleMap[orientation.ordinal()];
break;
}
box.rotateAngleX=angle[0];
box.rotateAngleY=angle[1];
box.rotateAngleZ=angle[2];
trunk.rotateAngleX=angle[0];
trunk.rotateAngleY=angle[1];
trunk.rotateAngleZ=angle[2];
movingBox.rotateAngleX=angle[0];
movingBox.rotateAngleY=angle[1];
movingBox.rotateAngleZ=angle[2];
chamber.rotateAngleX=angle[0];
chamber.rotateAngleY=angle[1];
chamber.rotateAngleZ=angle[2];
float factor=(float)(1.0 / 16.0);
bindTexture(baseTexture);
box.render(factor);
GL11.glTranslatef(translate[0] * translatefact,translate[1] * translatefact,translate[2] * translatefact);
movingBox.render(factor);
GL11.glTranslatef(-translate[0] * translatefact,-translate[1] * translatefact,-translate[2] * translatefact);
bindTexture(chamberTexture);
float chamberf=2F / 16F;
int chamberc=((int)step + 2) / 2;
for (int i=0; i <= step + 2; i+=2) {
chamber.render(factor);
GL11.glTranslatef(translate[0] * chamberf,translate[1] * chamberf,translate[2] * chamberf);
}
GL11.glTranslatef(-translate[0] * chamberf * chamberc,-translate[1] * chamberf * chamberc,-translate[2] * chamberf * chamberc);
bindTexture(trunkTexture);
trunk.render(factor);
GL11.glPopAttrib();
GL11.glPopMatrix();
}

Fixed version (ground truth):
private void render(float progress,ForgeDirection orientation,ResourceLocation baseTexture,ResourceLocation chamberTexture,ResourceLocation trunkTexture,double x,double y,double z){
  if (BuildCraftCore.render == RenderMode.NoDynamic) {
    return;
  }
  GL11.glPushMatrix();
  GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
  GL11.glEnable(GL11.GL_LIGHTING);
  GL11.glDisable(GL11.GL_BLEND);
  GL11.glEnable(GL11.GL_CULL_FACE);
  GL11.glColor3f(1,1,1);
  GL11.glTranslatef((float)x,(float)y,(float)z);
  float step;
  if (progress > 0.5) {
    step=7.99F - (progress - 0.5F) * 2F * 7.99F;
  }
 else {
    step=progress * 2F * 7.99F;
  }
  float translatefact=step / 16;
  float[] angle={0,0,0};
  float[] translate={orientation.offsetX,orientation.offsetY,orientation.offsetZ};
switch (orientation) {
case EAST:
case WEST:
case DOWN:
    angle[2]=angleMap[orientation.ordinal()];
  break;
case SOUTH:
case NORTH:
default :
angle[0]=angleMap[orientation.ordinal()];
break;
}
box.rotateAngleX=angle[0];
box.rotateAngleY=angle[1];
box.rotateAngleZ=angle[2];
trunk.rotateAngleX=angle[0];
trunk.rotateAngleY=angle[1];
trunk.rotateAngleZ=angle[2];
movingBox.rotateAngleX=angle[0];
movingBox.rotateAngleY=angle[1];
movingBox.rotateAngleZ=angle[2];
chamber.rotateAngleX=angle[0];
chamber.rotateAngleY=angle[1];
chamber.rotateAngleZ=angle[2];
float factor=(float)(1.0 / 16.0);
bindTexture(baseTexture);
box.render(factor);
GL11.glTranslatef(translate[0] * translatefact,translate[1] * translatefact,translate[2] * translatefact);
movingBox.render(factor);
GL11.glTranslatef(-translate[0] * translatefact,-translate[1] * translatefact,-translate[2] * translatefact);
bindTexture(chamberTexture);
float chamberf=2F / 16F;
int chamberc=((int)step + 4) / 2;
for (int i=0; i <= step + 2; i+=2) {
chamber.render(factor);
GL11.glTranslatef(translate[0] * chamberf,translate[1] * chamberf,translate[2] * chamberf);
}
GL11.glTranslatef(-translate[0] * chamberf * chamberc,-translate[1] * chamberf * chamberc,-translate[2] * chamberf * chamberc);
bindTexture(trunkTexture);
trunk.render(factor);
GL11.glPopAttrib();
GL11.glPopMatrix();
}