Skip to content

Commit

Permalink
Merge branch 'develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathoschild committed Dec 7, 2018
2 parents a78b193 + 2b3fb71 commit 13ed6de
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions build/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Reflection;

[assembly: AssemblyProduct("SMAPI")]
[assembly: AssemblyVersion("2.9.0")]
[assembly: AssemblyFileVersion("2.9.0")]
[assembly: AssemblyVersion("2.9.1")]
[assembly: AssemblyFileVersion("2.9.1")]
5 changes: 5 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Release notes
## 2.9.1
* For players:
* Fixed crash in SMAPI 2.9 when constructing certain buildings.
* Fixed error when a map asset is reloaded in rare cases.

## 2.9
* For players:
* Added support for ModDrop in update checks and the mod compatibility list.
Expand Down
4 changes: 2 additions & 2 deletions src/SMAPI.Mods.ConsoleCommands/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Console Commands",
"Author": "SMAPI",
"Version": "2.9.0",
"Version": "2.9.1",
"Description": "Adds SMAPI console commands that let you manipulate the game.",
"UniqueID": "SMAPI.ConsoleCommands",
"EntryDll": "ConsoleCommands.dll",
"MinimumApiVersion": "2.9.0"
"MinimumApiVersion": "2.9.1"
}
4 changes: 2 additions & 2 deletions src/SMAPI.Mods.SaveBackup/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Name": "Save Backup",
"Author": "SMAPI",
"Version": "2.9.0",
"Version": "2.9.1",
"Description": "Automatically backs up all your saves once per day into its folder.",
"UniqueID": "SMAPI.SaveBackup",
"EntryDll": "SaveBackup.dll",
"MinimumApiVersion": "2.9.0"
"MinimumApiVersion": "2.9.1"
}
2 changes: 1 addition & 1 deletion src/SMAPI/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static class Constants
** Public
****/
/// <summary>SMAPI's current semantic version.</summary>
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("2.9.0");
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("2.9.1");

/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.3.32");
Expand Down
16 changes: 8 additions & 8 deletions src/SMAPI/Framework/StateTracking/WorldLocationsTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ public WorldLocationsTracker(ObservableCollection<GameLocation> locations, IList
/// <summary>Update the current value if needed.</summary>
public void Update()
{
// detect added/removed locations
// update watchers
this.LocationListWatcher.Update();
this.MineLocationListWatcher.Update();
foreach (LocationTracker watcher in this.Locations)
watcher.Update();

// detect added/removed locations
if (this.LocationListWatcher.IsChanged)
{
this.Remove(this.LocationListWatcher.Removed);
Expand All @@ -77,14 +81,10 @@ public void Update()
}

// detect building changed
foreach (LocationTracker watcher in this.Locations.ToArray())
foreach (LocationTracker watcher in this.Locations.Where(p => p.BuildingsWatcher.IsChanged).ToArray())
{
watcher.Update();
if (watcher.BuildingsWatcher.IsChanged)
{
this.Remove(watcher.BuildingsWatcher.Removed);
this.Add(watcher.BuildingsWatcher.Added);
}
this.Remove(watcher.BuildingsWatcher.Removed);
this.Add(watcher.BuildingsWatcher.Added);
}

// detect building interiors changed (e.g. construction completed)
Expand Down
2 changes: 1 addition & 1 deletion src/SMAPI/Metadata/CoreAssetPropagator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private object PropagateImpl(LocalizedContentManager content, string key, Type t
bool anyChanged = false;
foreach (GameLocation location in this.GetLocations())
{
if (this.GetNormalisedPath(location.mapPath.Value) == key)
if (!string.IsNullOrWhiteSpace(location.mapPath.Value) && this.GetNormalisedPath(location.mapPath.Value) == key)
{
this.Reflection.GetMethod(location, "reloadMap").Invoke();
this.Reflection.GetMethod(location, "updateWarps").Invoke();
Expand Down

0 comments on commit 13ed6de

Please sign in to comment.