public DataLoader(IModHelper helper)
        {
            Helper    = helper;
            I18N      = helper.Translation;
            ModConfig = helper.ReadConfig <ModConfig>();

            CaskData = DataLoader.Helper.Data.ReadJsonFile <Dictionary <object, float> >("data\\CaskData.json") ?? new Dictionary <object, float>()
            {
                { 342, 2.66f }, { 724, 2f }
            };
            DataLoader.Helper.Data.WriteJsonFile("data\\CaskData.json", CaskData);
            DataLoader.LoadContentPacksCommand();

            if (!ModConfig.DisableLetter)
            {
                MailDao.SaveLetter
                (
                    new Letter
                    (
                        "CustomCaskRecipe"
                        , I18N.Get("CustomCask.RecipeLetter")
                        , "Cask"
                        , (l) => !Game1.player.mailReceived.Contains(l.Id) && !Game1.player.mailReceived.Contains("CustomCask.Letter") && (Utility.getHomeOfFarmer(Game1.player).upgradeLevel >= 3 || ModConfig.EnableCasksAnywhere) && !Game1.player.craftingRecipes.ContainsKey("Cask")
                        , (l) => Game1.player.mailReceived.Add(l.Id)
                    )
                );
                MailDao.SaveLetter
                (
                    new Letter
                    (
                        "CustomCask"
                        , I18N.Get("CustomCask.Letter")
                        , (l) => !Game1.player.mailReceived.Contains(l.Id) && !Game1.player.mailReceived.Contains("CustomCask.RecipeLetter") && (Utility.getHomeOfFarmer(Game1.player).upgradeLevel >= 3 || ModConfig.EnableCasksAnywhere) && Game1.player.craftingRecipes.ContainsKey("Cask")
                        , (l) => Game1.player.mailReceived.Add(l.Id)
                    )
                );
            }
        }
 /// <summary>Raised after the player loads a save slot and the world is initialized.</summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event data.</param>
 public static void OnSaveLoaded(object sender, SaveLoadedEventArgs e)
 {
     DataLoader.LoadContentPacksCommand();
 }