From ad681d5a268317b8b29db812f904f0df43103f62 Mon Sep 17 00:00:00 2001 From: Nilanth Animosus Date: Wed, 18 Jul 2018 11:03:04 +0100 Subject: [PATCH] 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. --- Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs b/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs index c0ecc0749..742f6cbab 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs @@ -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))