update for disconnection change in SDV 1.4 (#638)
This commit is contained in:
parent
85715988f9
commit
8e0ddd1d00
|
@ -190,7 +190,7 @@ namespace StardewModdingAPI.Framework
|
|||
/// <remarks>This overrides the logic in <see cref="Game1.exitEvent"/> to let SMAPI clean up before exit.</remarks>
|
||||
protected override void OnExiting(object sender, EventArgs args)
|
||||
{
|
||||
Game1.multiplayer.Disconnect();
|
||||
Game1.multiplayer.Disconnect(StardewValley.Multiplayer.DisconnectType.ClosedGame);
|
||||
this.OnGameExiting?.Invoke();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue