/// <summary>Raised before the game begins writes data to the save file (except the initial save creation).</summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void OnSaving(object sender, SavingEventArgs e) { if (!Context.IsMainPlayer) { return; } Conditions.OnSaving(); if (Conditions.trackerModel is null) { Conditions.trackerModel = new ClimateTracker(); } this.Helper.Data.WriteSaveData("climate-tracker", Conditions.trackerModel); queuedMsg = WeatherProcessing.HandleOnSaving(Conditions, Dice); //handles crop death and any other weather conditions that need to be handled on save. }