From 8e4c603cad96059972f2d3f611478e66b4e0a3cd Mon Sep 17 00:00:00 2001 From: Twirlbug Date: Tue, 27 Jun 2023 20:29:30 -0500 Subject: [PATCH] Stopped the errors caused my the server client trying to save --- SRMP/Patches/Patch_PauseMenu.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SRMP/Patches/Patch_PauseMenu.cs b/SRMP/Patches/Patch_PauseMenu.cs index 2003929..b55f264 100644 --- a/SRMP/Patches/Patch_PauseMenu.cs +++ b/SRMP/Patches/Patch_PauseMenu.cs @@ -17,7 +17,12 @@ namespace SRMultiplayer.Patches { if (!Globals.IsMultiplayer) return; - NetworkClient.Instance.Disconnect(); + //only handle the client if the client is the one disconnecting + if (!Globals.IsServer) + { + NetworkClient.Instance.Disconnect(); + } + //if server ahndle the shutdown NetworkServer.Instance.Disconnect(); } }