Quick GUI fix

Crash report by unamedgamer1
This commit is contained in:
ORelio 2015-02-03 12:39:02 +01:00
parent 2408b51d28
commit b566882e84

View file

@ -86,6 +86,8 @@ namespace MinecraftClientGUI
while (line.Trim() == "")
{
line = Client.StandardOutput.ReadLine() + Client.MainWindowTitle;
if (line.Length > 0)
{
if (line == "Server was successfuly joined.") { disconnected = false; }
if (line == "You have left the server.") { disconnected = true; }
if (line[0] == (char)0x00)
@ -103,6 +105,7 @@ namespace MinecraftClientGUI
else OutputBuffer.AddLast(line);
}
}
}
catch (NullReferenceException) { break; }
}
}