Chatbox removes from the first entry instead of the second

Removes for clients "playername has joined" staying at the top of the chat history, as this feels unnecessary for both server and client.
This commit is contained in:
Nilanth Animosus
2018-07-18 11:03:04 +01:00
parent adb63adbb1
commit ad681d5a26

View File

@@ -162,7 +162,7 @@ namespace Barotrauma.Networking
while (chatBox.CountChildren > 20)
{
chatBox.RemoveChild(chatBox.children[1]);
chatBox.RemoveChild(chatBox.children[0]);
}
if (!string.IsNullOrWhiteSpace(message.SenderName))