From ece4500d9c6b004ce2a3f9749b8d4a5935154ec3 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Wed, 3 Apr 2024 11:03:30 +0100 Subject: [PATCH] fix: removing disconnected player from observer lists --- Assets/Mirage/Runtime/NetworkServer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Mirage/Runtime/NetworkServer.cs b/Assets/Mirage/Runtime/NetworkServer.cs index 09c3006e5c..528cfb2c84 100644 --- a/Assets/Mirage/Runtime/NetworkServer.cs +++ b/Assets/Mirage/Runtime/NetworkServer.cs @@ -563,6 +563,7 @@ private void OnDisconnected(INetworkPlayer player) player.DestroyOwnedObjects(); player.Identity = null; + player.RemoveAllVisibleObjects(); if (player == LocalPlayer) LocalPlayer = null;