Program: 95687
Project: 95687
Buggy source:
@Override public void updateTick(World world,int x,int y,int z,Random rnd){
  TileEntityCrop crop=(TileEntityCrop)world.getTileEntity(x,y,z);
  if (crop.hasPlant()) {
    Event.Result allowGrowthResult=AppleCoreHelper.validateGrowthTick(this,world,x,y,z,rnd);
    if (allowGrowthResult != Event.Result.DENY) {
      int meta=this.getPlantMetadata(world,x,y,z);
      if (meta < 7 && crop.isFertile()) {
        double multiplier=1.0 + (crop.growth + 0.00) / 10;
        float growthRate=(float)SeedHelper.getBaseGrowth((ItemSeeds)crop.seed,crop.seedMeta);
        boolean shouldGrow=(rnd.nextDouble() <= (growthRate * multiplier) / 100);
        if (shouldGrow) {
          meta++;
          world.setBlockMetadataWithNotify(x,y,z,meta,2);
          AppleCoreHelper.announceGrowthTick(this,world,x,y,z);
        }
      }
    }
  }
 else   if (crop.weed) {
    Event.Result allowGrowthResult=AppleCoreHelper.validateGrowthTick(this,world,x,y,z,rnd);
    if (allowGrowthResult != Event.Result.DENY) {
      int meta=this.getPlantMetadata(world,x,y,z);
      if (meta < 7) {
        double multiplier=1.0 + (10 + 0.00) / 10;
        float growthRate=(float)Constants.growthTier1;
        boolean shouldGrow=(rnd.nextDouble() <= (growthRate * multiplier) / 100);
        if (shouldGrow) {
          meta++;
          world.setBlockMetadataWithNotify(x,y,z,meta,2);
          AppleCoreHelper.announceGrowthTick(this,world,x,y,z);
        }
      }
 else {
        if (ConfigurationHandler.enableWeeds) {
          crop.spreadWeed();
        }
      }
    }
  }
 else {
    if (ConfigurationHandler.enableWeeds && Math.random() < 0.10) {
      crop.spawnWeed();
    }
 else     if (crop.crossCrop) {
      crop.crossOver();
    }
  }
}

Fixed version (ground truth):
@Override public void updateTick(World world,int x,int y,int z,Random rnd){
  TileEntityCrop crop=(TileEntityCrop)world.getTileEntity(x,y,z);
  if (crop.hasPlant()) {
    Event.Result allowGrowthResult=AppleCoreHelper.validateGrowthTick(this,world,x,y,z,rnd);
    if (allowGrowthResult != Event.Result.DENY) {
      int meta=this.getPlantMetadata(world,x,y,z);
      if (meta < 7 && crop.isFertile()) {
        double multiplier=1.0 + (crop.growth + 0.00) / 10;
        float growthRate=(float)SeedHelper.getBaseGrowth(crop.seed,crop.seedMeta);
        boolean shouldGrow=(rnd.nextDouble() <= (growthRate * multiplier) / 100);
        if (shouldGrow) {
          meta++;
          world.setBlockMetadataWithNotify(x,y,z,meta,2);
          AppleCoreHelper.announceGrowthTick(this,world,x,y,z);
        }
      }
    }
  }
 else   if (crop.weed) {
    Event.Result allowGrowthResult=AppleCoreHelper.validateGrowthTick(this,world,x,y,z,rnd);
    if (allowGrowthResult != Event.Result.DENY) {
      int meta=this.getPlantMetadata(world,x,y,z);
      if (meta < 7) {
        double multiplier=1.0 + (10 + 0.00) / 10;
        float growthRate=(float)Constants.growthTier1;
        boolean shouldGrow=(rnd.nextDouble() <= (growthRate * multiplier) / 100);
        if (shouldGrow) {
          meta++;
          world.setBlockMetadataWithNotify(x,y,z,meta,2);
          AppleCoreHelper.announceGrowthTick(this,world,x,y,z);
        }
      }
 else {
        if (ConfigurationHandler.enableWeeds) {
          crop.spreadWeed();
        }
      }
    }
  }
 else {
    if (ConfigurationHandler.enableWeeds && Math.random() < 0.10) {
      crop.spawnWeed();
    }
 else     if (crop.crossCrop) {
      crop.crossOver();
    }
  }
}