void GameLoop_Saving(object sender, StardewModdingAPI.Events.SavingEventArgs e) { try { SaveData data = new SaveData(); Pests.Save(data); Cultivation.Save(data); Composting.Save(data); ModEntry.GetHelper().Data.WriteSaveData <SaveData>(nameof(SaveData), data); } finally { Composting.ResetCompostingBins(); } }
void GameLoop_Saving(object sender, StardewModdingAPI.Events.SavingEventArgs e) { Pests.Save(); Cultivation.Save(); Composting.Save(); }