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 17, 2018
2 parents b214a76 + a6f74e8 commit 82beefd
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 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.2")]
[assembly: AssemblyFileVersion("2.9.2")]
[assembly: AssemblyVersion("2.9.3")]
[assembly: AssemblyFileVersion("2.9.3")]
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.3
* For players:
* Fixed errors hovering items in some cases with SMAPI 2.9.2.
* Fixed some multiplayer features broken when a farmhand returns to title and rejoins.

## 2.9.2
* For players:
* SMAPI now prevents invalid items from crashing the game on hover.
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.2",
"Version": "2.9.3",
"Description": "Adds SMAPI console commands that let you manipulate the game.",
"UniqueID": "SMAPI.ConsoleCommands",
"EntryDll": "ConsoleCommands.dll",
"MinimumApiVersion": "2.9.2"
"MinimumApiVersion": "2.9.3"
}
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.2",
"Version": "2.9.3",
"Description": "Automatically backs up all your saves once per day into its folder.",
"UniqueID": "SMAPI.SaveBackup",
"EntryDll": "SaveBackup.dll",
"MinimumApiVersion": "2.9.2"
"MinimumApiVersion": "2.9.3"
}
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.2");
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("2.9.3");

/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.3.32");
Expand Down
2 changes: 1 addition & 1 deletion src/SMAPI/Framework/SGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private void OnModMessageReceived(ModMessageModel message)
private void OnReturnedToTitle()
{
this.Monitor.Log("Context: returned to title", LogLevel.Trace);
this.Multiplayer.Peers.Clear();
this.Multiplayer.CleanupOnMultiplayerExit();
this.Events.ReturnedToTitle.RaiseEmpty();
#if !SMAPI_3_0_STRICT
this.Events.Legacy_AfterReturnToTitle.Raise();
Expand Down
7 changes: 7 additions & 0 deletions src/SMAPI/Framework/SMultiplayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ public SMultiplayer(IMonitor monitor, EventManager eventManager, JsonHelper json
this.OnModMessageReceived = onModMessageReceived;
}

/// <summary>Perform cleanup needed when a multiplayer session ends.</summary>
public void CleanupOnMultiplayerExit()
{
this.Peers.Clear();
this.HostPeer = null;
}

#if !SMAPI_3_0_STRICT
/// <summary>Handle sync messages from other players and perform other initial sync logic.</summary>
public override void UpdateEarly()
Expand Down
2 changes: 1 addition & 1 deletion src/SMAPI/Patches/ObjectErrorPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static bool Prefix(SObject __instance, ref string __result)
return false;
}

return false;
return true;
}
}
}

0 comments on commit 82beefd

Please sign in to comment.