diff --git a/Shared/Network/NetworkManager.cs b/Shared/Network/NetworkManager.cs index 1294e23..fa5097d 100644 --- a/Shared/Network/NetworkManager.cs +++ b/Shared/Network/NetworkManager.cs @@ -38,8 +38,8 @@ public class NetworkManager : UniverseObject, INetworkManager var previousCommunicator = _networkCommunicator; _networkCommunicator = value; - if (previousCommunicator is not null) SubscribeCommunicatorMethods(previousCommunicator); - if (_networkCommunicator is not null) UnsubscribeCommunicatorMethods(_networkCommunicator); + if (previousCommunicator is not null) UnsubscribeCommunicatorMethods(previousCommunicator); + if (_networkCommunicator is not null) SubscribeCommunicatorMethods(_networkCommunicator); } }