diff --git a/scripts/MultiplayerManager.cs b/scripts/MultiplayerManager.cs index eddfe18..98ad785 100644 --- a/scripts/MultiplayerManager.cs +++ b/scripts/MultiplayerManager.cs @@ -55,7 +55,7 @@ public partial class MultiplayerManager : Node { LocalPlayer.Name = "Local"; foreach (var player in Players.GetChildren().Cast()) - OnPeerDisconnected(player.PeerId); + if (!player.IsLocal) OnPeerDisconnected(player.PeerId); Multiplayer.MultiplayerPeer.Close(); Multiplayer.MultiplayerPeer = null; }