Startup Optimization

This commit is contained in:
BruceChen 2022-08-30 22:50:05 +08:00
parent 3d13eb51e6
commit c90ea0e92b
6 changed files with 104 additions and 70 deletions

View file

@ -217,8 +217,7 @@ namespace MinecraftClient.Protocol
//Load the external dictionnary of translation rules or display an error message
if (System.IO.File.Exists(Language_File))
{
string[] translations = System.IO.File.ReadAllLines(Language_File);
foreach (string line in translations)
foreach (var line in File.ReadLines(Language_File))
{
if (line.Length > 0)
{