This commit is contained in:
EvilFactory
2023-06-15 12:13:50 -03:00
210 changed files with 4491 additions and 2580 deletions
@@ -132,7 +132,7 @@ namespace Barotrauma.Networking
listBox.UpdateScrollBarSize();
}
#endif
if (unsavedLines.Count() >= LinesPerFile)
if (unsavedLines.Count >= LinesPerFile)
{
Save();
unsavedLines.Clear();
@@ -146,7 +146,7 @@ namespace Barotrauma.Networking
#if CLIENT
while (listBox != null && listBox.Content.CountChildren > LinesPerFile)
{
listBox.RemoveChild(reverseOrder ? listBox.Content.Children.First() : listBox.Content.Children.Last());
listBox.Content.RemoveChild(!reverseOrder ? listBox.Content.Children.First() : listBox.Content.Children.Last());
}
#endif
}