Skip to content

Commit

Permalink
LinkedStashChests: Since last Outward update, all save parts are no m…
Browse files Browse the repository at this point in the history
…ore loaded in memory so had to process file save on other stash after they have been cleared
  • Loading branch information
laymain committed Apr 22, 2020
1 parent d94dcbd commit ed9b501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LinkedStashChests/LinkedStashChestsMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class LinkedStashChestsMod : PartialityMod
public LinkedStashChestsMod()
{
ModID = "LinkedStashChests";
Version = "2";
Version = "3";
author = "Stian+Laymain";
}

Expand Down Expand Up @@ -230,6 +230,7 @@ private bool SaveInstance_ApplyEnvironment(On.SaveInstance.orig_ApplyEnvironment
AddSavedStashSilver(savedStashSilver, basicSaveData);
ItemManager.Instance.LoadItems(new List<BasicSaveData>(1) {basicSaveData});
currentStashItems.AddRange(otherStashItems);
otherAreaSave.ProcessSave();

otherStashItems = GetSavedStashItems(otherAreaSave, StashAreaToStashUID[areaName]);
bufferedLog.AppendLine($"{otherAreaSave.AreaName}'s SAVED stash chest AFTER pulling all its items into {areaName}'s stash chest:");
Expand Down

0 comments on commit ed9b501

Please sign in to comment.