update for disconnection change in SDV 1.4 (#638)

This commit is contained in:
Jesse Plamondon-Willard 2019-08-01 00:47:24 -04:00
parent 85715988f9
commit 8e0ddd1d00
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}