Program: 95727
Project: 95727
Buggy source:
@Override public boolean onItemUseFirst(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,int side,float hitX,float hitY,float hitZ){
  if (!world.isRemote) {
    if (world.getBlock(x,y,z) != null && world.getBlock(x,y,z) instanceof BlockCrop) {
      TileEntity te=world.getTileEntity(x,y,z);
      if (te != null && te instanceof TileEntityCrop) {
        TileEntityCrop crop=(TileEntityCrop)te;
        if (crop.weed) {
          crop.clearWeed();
        }
 else         if (crop.hasPlant() && stack.getItemDamage() == 0) {
          NBTTagCompound tag=new NBTTagCompound();
          tag.setShort(Names.NBT.growth,(short)crop.growth);
          tag.setShort(Names.NBT.gain,(short)crop.gain);
          tag.setShort(Names.NBT.strength,(short)crop.strength);
          tag.setBoolean(Names.NBT.analyzed,crop.analyzed);
          tag.setString(Names.Objects.seed,crop.getSeedString());
          tag.setShort(Names.NBT.meta,(short)crop.seedMeta);
          tag.setShort(Names.NBT.materialMeta,(short)world.getBlockMetadata(x,y,z));
          stack.setTagCompound(tag);
          stack.setItemDamage(1);
          crop.clearPlant();
          return true;
        }
 else         if (!crop.hasPlant() && !crop.crossCrop && stack.getItemDamage() == 1) {
          NBTTagCompound tag=stack.getTagCompound();
          ItemSeeds seed=(ItemSeeds)Item.itemRegistry.getObject(tag.getString(Names.Objects.seed));
          int seedMeta=tag.getShort(Names.NBT.meta);
          if (GrowthRequirements.getGrowthRequirement(seed,seedMeta).isValidSoil(world.getBlock(x,y - 1,z),world.getBlockMetadata(x,y - 1,z))) {
            crop.growth=tag.getShort(Names.NBT.growth);
            crop.gain=tag.getShort(Names.NBT.gain);
            crop.strength=tag.getShort(Names.NBT.strength);
            crop.analyzed=tag.getBoolean(Names.NBT.analyzed);
            crop.seed=seed;
            crop.seedMeta=seedMeta;
            world.setBlockMetadataWithNotify(x,y,z,tag.getShort(Names.NBT.materialMeta),3);
            crop.markForUpdate();
            stack.setTagCompound(null);
            stack.setItemDamage(0);
            return true;
          }
        }
      }
    }
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean onItemUseFirst(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,int side,float hitX,float hitY,float hitZ){
  if (!world.isRemote) {
    if (world.getBlock(x,y,z) != null && world.getBlock(x,y,z) instanceof BlockCrop) {
      TileEntity te=world.getTileEntity(x,y,z);
      if (te != null && te instanceof TileEntityCrop) {
        TileEntityCrop crop=(TileEntityCrop)te;
        if (crop.weed) {
          crop.clearWeed();
        }
 else         if (crop.hasPlant() && stack.getItemDamage() == 0) {
          NBTTagCompound tag=new NBTTagCompound();
          tag.setShort(Names.NBT.growth,(short)crop.growth);
          tag.setShort(Names.NBT.gain,(short)crop.gain);
          tag.setShort(Names.NBT.strength,(short)crop.strength);
          tag.setBoolean(Names.NBT.analyzed,crop.analyzed);
          tag.setString(Names.Objects.seed,crop.getSeedString());
          tag.setShort(Names.NBT.meta,(short)crop.seedMeta);
          tag.setShort(Names.NBT.materialMeta,(short)world.getBlockMetadata(x,y,z));
          stack.setTagCompound(tag);
          stack.setItemDamage(1);
          crop.clearPlant();
          return true;
        }
 else         if (!crop.hasPlant() && !crop.crossCrop && stack.getItemDamage() == 1) {
          NBTTagCompound tag=stack.getTagCompound();
          ItemSeeds seed=(ItemSeeds)Item.itemRegistry.getObject(tag.getString(Names.Objects.seed));
          int seedMeta=tag.getShort(Names.NBT.meta);
          if (GrowthRequirements.getGrowthRequirement(seed,seedMeta).isValidSoil(world,x,y - 1,z)) {
            crop.growth=tag.getShort(Names.NBT.growth);
            crop.gain=tag.getShort(Names.NBT.gain);
            crop.strength=tag.getShort(Names.NBT.strength);
            crop.analyzed=tag.getBoolean(Names.NBT.analyzed);
            crop.seed=seed;
            crop.seedMeta=seedMeta;
            world.setBlockMetadataWithNotify(x,y,z,tag.getShort(Names.NBT.materialMeta),3);
            crop.markForUpdate();
            stack.setTagCompound(null);
            stack.setItemDamage(0);
            return true;
          }
        }
      }
    }
  }
  return false;
}