From 376f18c43aff3fe42d32057d103adedb43646ac5 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Fri, 19 Jul 2024 21:40:08 +0300 Subject: [PATCH] fix: Server Connection Count Default --- Game/Network/NetworkServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Game/Network/NetworkServer.cs b/Game/Network/NetworkServer.cs index 1f5f17b..47a2731 100644 --- a/Game/Network/NetworkServer.cs +++ b/Game/Network/NetworkServer.cs @@ -8,12 +8,12 @@ namespace Syntriax.Engine.Network; public class NetworkServer : NetworkBase, INetworkCommunicatorServer { public string Password { get; private set; } = string.Empty; - public int MaxConnectionCount { get; private set; } = 0; + public int MaxConnectionCount { get; private set; } = 2; public int Port { get; private set; } = 8888; private readonly NetDataWriter netDataWriter = new(); - public NetworkServer() : this(8888, 0) { } + public NetworkServer() : this(8888, 2) { } public NetworkServer(int port, int maxConnectionCount) : base() { MaxConnectionCount = maxConnectionCount;