mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Quick GUI fix
Crash report by unamedgamer1
This commit is contained in:
parent
2408b51d28
commit
b566882e84
1 changed files with 14 additions and 11 deletions
|
|
@ -86,6 +86,8 @@ namespace MinecraftClientGUI
|
||||||
while (line.Trim() == "")
|
while (line.Trim() == "")
|
||||||
{
|
{
|
||||||
line = Client.StandardOutput.ReadLine() + Client.MainWindowTitle;
|
line = Client.StandardOutput.ReadLine() + Client.MainWindowTitle;
|
||||||
|
if (line.Length > 0)
|
||||||
|
{
|
||||||
if (line == "Server was successfuly joined.") { disconnected = false; }
|
if (line == "Server was successfuly joined.") { disconnected = false; }
|
||||||
if (line == "You have left the server.") { disconnected = true; }
|
if (line == "You have left the server.") { disconnected = true; }
|
||||||
if (line[0] == (char)0x00)
|
if (line[0] == (char)0x00)
|
||||||
|
|
@ -103,6 +105,7 @@ namespace MinecraftClientGUI
|
||||||
else OutputBuffer.AddLast(line);
|
else OutputBuffer.AddLast(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (NullReferenceException) { break; }
|
catch (NullReferenceException) { break; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue