From 4824496f1a4a2da43d00de839c5f5b951e370412 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sun, 1 Jun 2025 10:20:06 +0300 Subject: [PATCH] fix: network manager not subscribing to communicator properly --- Shared/Network/NetworkManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }