public async Task ExportItems() { // Overrides current recipes in file var tagsString = RecipeUtil.GetCraftableTagItems(); if (tagsString == null || tagsString.Length == 0) { return; } await DataExporter.WriteToFile("tags", "/", tagsString); Logger.Debug($"Item tags exported at {DateTime.Now.ToShortTimeString()}"); }
public async Task ExportRecipes() { // Overrides current recipes in file var recipesString = RecipeUtil.GetRecipesString(); if (recipesString == null || recipesString.Length == 0) { return; } await DataExporter.WriteToFile("recipes", "/", recipesString); Logger.Debug($"Recipes exported at {DateTime.Now.ToShortTimeString()}"); }
public async Task ExportLiveCraftingTablesData() { if (Config.Data.SaveCraftingTablesData) { // Overrides current crafting tables data in file Logger.Debug("Exporting crafting tables data"); var craftingTablesString = RecipeUtil.GetCraftingTablesString(); if (craftingTablesString == null || craftingTablesString.Length == 0) { return; } await DataExporter.WriteToFile("craftingTables", "/", craftingTablesString); Logger.Debug($"Finished exporting crafting tables data"); } }