-try-catch blocks for GUIComponents fixedChildren lists
-player name and IP address in debug messages -crash logs now output up to 15 messages
This commit is contained in:
@@ -86,9 +86,7 @@ namespace Barotrauma.Networking
|
||||
inc.SenderConnection.Disconnect("Server full");
|
||||
return;
|
||||
}
|
||||
|
||||
DebugConsole.NewMessage("New player has joined the server", Color.White);
|
||||
|
||||
|
||||
byte userID;
|
||||
string version = "", packageName = "", packageHash = "", name = "";
|
||||
try
|
||||
@@ -106,6 +104,8 @@ namespace Barotrauma.Networking
|
||||
return;
|
||||
}
|
||||
|
||||
DebugConsole.NewMessage("New player has joined the server (" + name + ", " + inc.SenderConnection.RemoteEndPoint.Address.ToString() + ")", Color.White);
|
||||
|
||||
#if !DEBUG
|
||||
if (string.IsNullOrWhiteSpace(name))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user