diff --git a/Robust.Shared/Network/NetManager.ClientConnect.cs b/Robust.Shared/Network/NetManager.ClientConnect.cs index 1a0e0cfdafc..b92ea782ed3 100644 --- a/Robust.Shared/Network/NetManager.ClientConnect.cs +++ b/Robust.Shared/Network/NetManager.ClientConnect.cs @@ -18,7 +18,7 @@ namespace Robust.Shared.Network { - public partial class NetManager + partial class NetManager { private CancellationTokenSource? _cancelConnectTokenSource; private ClientConnectionState _clientConnectState; diff --git a/Robust.Shared/Network/NetManager.NetChannel.cs b/Robust.Shared/Network/NetManager.NetChannel.cs index 676864dcb36..8b61457ccc4 100644 --- a/Robust.Shared/Network/NetManager.NetChannel.cs +++ b/Robust.Shared/Network/NetManager.NetChannel.cs @@ -8,7 +8,7 @@ namespace Robust.Shared.Network { - public partial class NetManager + partial class NetManager { private sealed class NetChannel : INetChannel { diff --git a/Robust.Shared/Network/NetManager.Send.cs b/Robust.Shared/Network/NetManager.Send.cs index 0100a986a86..f0d3156b9ab 100644 --- a/Robust.Shared/Network/NetManager.Send.cs +++ b/Robust.Shared/Network/NetManager.Send.cs @@ -6,7 +6,7 @@ namespace Robust.Shared.Network; -public sealed partial class NetManager +sealed partial class NetManager { // Encryption is relatively expensive, so we want to not do it on the main thread. // We can't *just* thread pool everything though, because most messages still require strict ordering guarantees. diff --git a/Robust.Shared/Network/NetManager.Upnp.cs b/Robust.Shared/Network/NetManager.Upnp.cs index aeee0f9b2b9..fba1d3deaee 100644 --- a/Robust.Shared/Network/NetManager.Upnp.cs +++ b/Robust.Shared/Network/NetManager.Upnp.cs @@ -8,7 +8,7 @@ namespace Robust.Shared.Network; -public partial class NetManager +partial class NetManager { private void InitUpnp() { diff --git a/Robust.Shared/Network/NetManager.cs b/Robust.Shared/Network/NetManager.cs index 76ec09748e3..96bd0c6954a 100644 --- a/Robust.Shared/Network/NetManager.cs +++ b/Robust.Shared/Network/NetManager.cs @@ -37,7 +37,7 @@ namespace Robust.Shared.Network /// /// Manages all network connections and packet IO. /// - public sealed partial class NetManager : IClientNetManager, IServerNetManager, IPostInjectInit + internal sealed partial class NetManager : IClientNetManager, IServerNetManager, IPostInjectInit { internal const int SharedKeyLength = CryptoAeadXChaCha20Poly1305Ietf.KeyBytes; // 32 bytes @@ -948,7 +948,7 @@ private bool DispatchNetMessage(NetIncomingMessage msg) _logger.Error($"{msg.SenderConnection.RemoteEndPoint}: Wrong deserialization of {type.Name} packet:\n{ice}"); return true; } - catch (Exception e) // yes, we want to catch ALL exeptions for security + catch (Exception e) // yes, we want to catch ALL exceptions for security { _logger.Error($"{msg.SenderConnection.RemoteEndPoint}: Failed to deserialize {type.Name} packet:\n{e}"); return true;