fix clients not getting correctly banned if this hook is present
This commit is contained in:
+6
-6
@@ -211,12 +211,6 @@ namespace Barotrauma.Networking
|
|||||||
if (result.Bool())
|
if (result.Bool())
|
||||||
goto ignore;
|
goto ignore;
|
||||||
|
|
||||||
if (IsPendingClientBanned(pendingClient, out string banReason))
|
|
||||||
{
|
|
||||||
RemovePendingClient(pendingClient, DisconnectReason.Banned, banReason);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (connectedClients.Count >= serverSettings.MaxPlayers)
|
if (connectedClients.Count >= serverSettings.MaxPlayers)
|
||||||
{
|
{
|
||||||
RemovePendingClient(pendingClient, DisconnectReason.ServerFull, "");
|
RemovePendingClient(pendingClient, DisconnectReason.ServerFull, "");
|
||||||
@@ -224,6 +218,12 @@ namespace Barotrauma.Networking
|
|||||||
|
|
||||||
ignore:
|
ignore:
|
||||||
|
|
||||||
|
if (IsPendingClientBanned(pendingClient, out string banReason))
|
||||||
|
{
|
||||||
|
RemovePendingClient(pendingClient, DisconnectReason.Banned, banReason);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (pendingClient.InitializationStep == ConnectionInitialization.Success)
|
if (pendingClient.InitializationStep == ConnectionInitialization.Success)
|
||||||
{
|
{
|
||||||
NetworkConnection newConnection = pendingClient.Connection;
|
NetworkConnection newConnection = pendingClient.Connection;
|
||||||
|
|||||||
Reference in New Issue
Block a user