Skip to content

Commit

Permalink
fix: removing disconnected player from observer lists
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Apr 3, 2024
1 parent 65e1a78 commit ece4500
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Mirage/Runtime/NetworkServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ private void OnDisconnected(INetworkPlayer player)

player.DestroyOwnedObjects();
player.Identity = null;
player.RemoveAllVisibleObjects();

if (player == LocalPlayer)
LocalPlayer = null;
Expand Down

0 comments on commit ece4500

Please sign in to comment.