diff options
Diffstat (limited to 'src/SMAPI/Framework/SMultiplayer.cs')
-rw-r--r-- | src/SMAPI/Framework/SMultiplayer.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SMultiplayer.cs b/src/SMAPI/Framework/SMultiplayer.cs index 784edae3..29d9b2b8 100644 --- a/src/SMAPI/Framework/SMultiplayer.cs +++ b/src/SMAPI/Framework/SMultiplayer.cs @@ -82,6 +82,13 @@ namespace StardewModdingAPI.Framework 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() |